This repository was archived by the owner on Mar 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
46 lines (38 loc) · 1.63 KB
/
CMakeLists.txt
File metadata and controls
46 lines (38 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# =============================================================================
# Copyright (c) 2016 - 2021 Blue Brain Project/EPFL
#
# See top-level LICENSE file for details.
# =============================================================================
include(TestHelpers)
include_directories(${CORENEURON_PROJECT_SOURCE_DIR} ${CORENEURON_PROJECT_BINARY_DIR}/generated
${Boost_INCLUDE_DIRS})
# Add compiler flags that should apply to all CoreNEURON targets, but which should not leak into
# other included projects.
add_compile_definitions(${CORENRN_COMPILE_DEFS})
add_compile_options(${CORENRN_EXTRA_CXX_FLAGS})
add_link_options(${CORENRN_EXTRA_LINK_FLAGS})
if(NOT Boost_USE_STATIC_LIBS)
add_definitions(-DBOOST_TEST_DYN_LINK=TRUE)
endif()
set(CMAKE_BUILD_RPATH ${CMAKE_BINARY_DIR}/bin/${CMAKE_HOST_SYSTEM_PROCESSOR})
set(Boost_NO_BOOST_CMAKE TRUE)
find_package(Boost 1.41.0 QUIET COMPONENTS filesystem system atomic unit_test_framework)
if(Boost_FOUND)
if(CORENRN_ENABLE_UNIT_TESTS)
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
add_subdirectory(unit/cmdline_interface)
add_subdirectory(unit/interleave_info)
add_subdirectory(unit/alignment)
add_subdirectory(unit/queueing)
add_subdirectory(unit/solver)
# lfp test uses nrnmpi_* wrappers but does not load the dynamic MPI library TODO: re-enable
# after NEURON and CoreNEURON dynamic MPI are merged
if(NOT CORENRN_ENABLE_MPI_DYNAMIC)
add_subdirectory(unit/lfp)
endif()
endif()
message(STATUS "Boost found, unit tests enabled")
else()
message(STATUS "Boost not found, unit tests disabled")
endif()
add_subdirectory(integration)