-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
General overhaul of the build and test system #217
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
59daa85
Adding CMake build support. The main user-end difference from using '…
jrper 7588d9e
Removing local copies of judy, spud, and spatialindex and adding
tmbgreaves 3f395a4
Updating dockerfiles
tmbgreaves 03be901
Standardise testing; add cmake testing
tmbgreaves 9baab25
Fixing GitHub issue #216 (vtk library missing)
tmbgreaves File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
file(GLOB lib_srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.F90) | ||
add_library_sources(${lib_srcs}) | ||
add_subdirectory(tests EXCLUDE_FROM_ALL) | ||
|
||
set(unittests ${assemble_unittests};${unittests} PARENT_SCOPE) | ||
set(unittest_meshes_3d ${assemble_unittest_meshes_3d};${unittest_meshes_3d} PARENT_SCOPE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
cmake_minimum_required(VERSION 2.6) | ||
enable_language (Fortran CXX) | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/tests) | ||
|
||
file(GLOB tests RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.F90) | ||
list(REMOVE_ITEM tests test_mba_supermesh.F90 test_legacy_cv_faces.F90 test_lagrangian_remap.F90 test_adapt_mesh_mba3d.F90 test_pressure_solve.F90 test_matrix_free.F90 test_dg_interpolation_quads.F90 test_dg_diffusion.F90) | ||
foreach(unittest IN LISTS tests) | ||
get_filename_component(test_name ${unittest} NAME_WE) | ||
add_library(${test_name}_main OBJECT test_main.cpp) | ||
set_target_properties(${test_name}_main PROPERTIES COMPILE_FLAGS -DTESTNAME=${test_name}_) | ||
add_executable(${test_name} ${unittest} $<TARGET_OBJECTS:${test_name}_main>) | ||
target_link_libraries(${test_name} fluidity ${FLUIDITY_PACKAGE_LIBS}) | ||
list(APPEND unittests ${test_name}) | ||
endforeach() | ||
|
||
set(assemble_unittests ${unittests} PARENT_SCOPE) | ||
set(assemble_unittest_meshes_3d "cube_prismatic;cube_unstructured;" PARENT_SCOPE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
add_library_sources(NetCDF_reader.cpp SampleNetCDF2.cpp import_bath_data.cpp read_netcdf_interface.cpp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
add_executable(create_climatology_atlas EXCLUDE_FROM_ALL create_climatology_atlas.cpp) | ||
target_link_libraries(create_climatology_atlas fluidity vtkfortran ${spatialindex} adaptivity ${VTK_LIBRARIES} ${MPI_LIBRARIES} ${PETSC_PACKAGE_LIBS} ${PETSC_LIB} ${ZOLTAN_LIB} ${SPUD_LIB} ${JUDY_LIB} ${UDUNITS_LIB} ${MBA2D_LIBS} ${PYTHON_LIBRARIES}) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to now be part of
install
rather than the separateinstall-user-schemata
. Is this intentional? As I'm not sure this is correct. Installing things in$(HOME)
should not be part ofinstall
which should only be installing things in$(DESTDIR)
. In particularmake install
is typically run with sudo in which case$(HOME)
is ambiguous or might not even be writable by root. I wonder whether we can get rid ofmake install-user-schemata
; I have never used it personally.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed - good point.