-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Smaller default build; check MPI support via find_package component. (#…
…619) Fixes #618 and fixes #617. * Add convenience targets: 'examples' for all examples; 'tests' for all tests. * Add support for component-testing in installed CMake package. * Allow test for MPI support via find_package via component. * Remove REQUIRED specification from `find_dependency()` commands in generated config. * Update `mech_vec.cpp` to match new `fvm_lowered_cell_impl` constructor.
- Loading branch information
Showing
16 changed files
with
74 additions
and
27 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
add_executable(bench bench.cpp recipe.cpp parameters.cpp) | ||
add_executable(bench EXCLUDE_FROM_ALL bench.cpp recipe.cpp parameters.cpp) | ||
add_dependencies(examples bench) | ||
|
||
target_link_libraries(bench PRIVATE arbor arbor-aux ext-tclap ext-json) |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
add_executable(brunel-miniapp | ||
add_executable(brunel-miniapp EXCLUDE_FROM_ALL | ||
brunel_miniapp.cpp | ||
io.cpp) | ||
add_dependencies(examples brunel-miniapp) | ||
|
||
target_link_libraries(brunel-miniapp PRIVATE arbor arbor-aux ext-tclap) |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
add_executable(dryrun dryrun.cpp) | ||
add_executable(dryrun EXCLUDE_FROM_ALL dryrun.cpp) | ||
add_dependencies(examples dryrun) | ||
|
||
target_link_libraries(dryrun PRIVATE arbor arbor-aux ext-json) |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
add_executable(event-gen event_gen.cpp) | ||
add_executable(event-gen EXCLUDE_FROM_ALL event_gen.cpp) | ||
add_dependencies(examples event-gen) | ||
|
||
target_link_libraries(event-gen PRIVATE arbor arbor-aux ext-json) |
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
add_executable(miniapp | ||
add_executable(miniapp EXCLUDE_FROM_ALL | ||
miniapp.cpp | ||
io.cpp | ||
miniapp_recipes.cpp | ||
morphology_pool.cpp | ||
trace.cpp | ||
) | ||
add_dependencies(examples miniapp) | ||
|
||
target_link_libraries(miniapp PRIVATE arbor arbor-aux ext-tclap ext-json) |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
add_executable(ring ring.cpp) | ||
add_executable(ring EXCLUDE_FROM_ALL ring.cpp) | ||
add_dependencies(examples ring) | ||
|
||
target_link_libraries(ring PRIVATE arbor arbor-aux ext-tclap ext-json) |
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 |
---|---|---|
@@ -1,21 +1,30 @@ | ||
find_package(Threads REQUIRED) | ||
find_threads_cuda_fix() | ||
|
||
add_library(gtest STATIC gtest-all.cpp) | ||
add_library(gtest EXCLUDE_FROM_ALL STATIC gtest-all.cpp) | ||
target_include_directories(gtest PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) | ||
target_link_libraries(gtest PUBLIC Threads::Threads) | ||
|
||
# Convenience target that builds all tests. | ||
# Test executable targets should be added to the 'tests' target as dependencies. | ||
add_custom_target(tests) | ||
|
||
# Unit tests. | ||
# Builds: unit. | ||
add_subdirectory(unit) | ||
|
||
# Test validating models, possebly needing other software installed. | ||
# Model validation. | ||
# Builds: validate. | ||
add_subdirectory(validation) | ||
|
||
# Test MPI wrappers and distribution operations. | ||
# Builds: unit-local and unit-mpi (if MPI enabled). | ||
add_subdirectory(unit-distributed) | ||
|
||
# Test modcc internals. | ||
# Builds: unit-modcc. | ||
add_subdirectory(unit-modcc) | ||
|
||
## Microbenchmarks. | ||
# Microbenchmarks. | ||
# Builds: one executable per microbenchmark under ubench/. | ||
add_subdirectory(ubench) |
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
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