File tree 1 file changed +11
-6
lines changed
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,17 @@ if(PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)
17
17
)
18
18
endif ()
19
19
20
+ # ---- Options ----
21
+
22
+ option (mallocMC_BUILD_TESTING "Turn on/off building the tests" OFF )
23
+ option (mallocMC_BUILD_EXAMPLES "Turn on/off building the examples" OFF )
24
+ if (mallocMC_BUILD_TESTING OR mallocMC_BUILD_EXAMPLES)
25
+ enable_testing ()
26
+ endif ()
27
+ if (mallocMC_BUILD_TESTING)
28
+ set (alpaka_ACC_CPU_B_SEQ_T_SEQ_ENABLE ON CACHE BOOL "" FORCE)
29
+ endif ()
30
+
20
31
# ---- Add dependencies via CPM ----
21
32
# see https://github.com/TheLartians/CPM.cmake for more info
22
33
@@ -81,18 +92,12 @@ target_include_directories(
81
92
target_link_libraries (${PROJECT_NAME} INTERFACE alpaka::alpaka)
82
93
83
94
84
- option (mallocMC_BUILD_TESTING "Turn on/off building the tests" OFF )
85
95
if (mallocMC_BUILD_TESTING)
86
- enable_testing ()
87
96
include (${CMAKE_CURRENT_LIST_DIR} /cmake/tools.cmake)
88
97
add_subdirectory (${CMAKE_CURRENT_LIST_DIR} /test ${CMAKE_BINARY_DIR} /test )
89
98
endif ()
90
99
91
- option (mallocMC_BUILD_EXAMPLES "Turn on/off building the examples" OFF )
92
100
if (mallocMC_BUILD_EXAMPLES)
93
- if (NOT mallocMC_BUILD_TESTING)
94
- enable_testing ()
95
- endif ()
96
101
include (${CMAKE_CURRENT_LIST_DIR} /cmake/tools.cmake)
97
102
add_subdirectory (${CMAKE_CURRENT_LIST_DIR} /examples ${CMAKE_BINARY_DIR} /examples)
98
103
endif ()
You can’t perform that action at this time.
0 commit comments