forked from learning-process/parallel_programming_course
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodes.cmake
More file actions
24 lines (21 loc) · 703 Bytes
/
modes.cmake
File metadata and controls
24 lines (21 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
add_compile_definitions(PPC_PATH_TO_PROJECT="${CMAKE_CURRENT_SOURCE_DIR}")
MACRO(SUBDIRLIST result curdir)
FILE(GLOB children RELATIVE ${curdir} ${curdir}/*)
SET(dirlist "")
FOREACH(child ${children})
IF(IS_DIRECTORY ${curdir}/${child})
LIST(APPEND dirlist ${child})
ENDIF()
ENDFOREACH()
SET(${result} ${dirlist})
ENDMACRO()
option(USE_FUNC_TESTS ON)
if( USE_FUNC_TESTS )
message( STATUS "Enable functional tests" )
add_compile_definitions(USE_FUNC_TESTS)
endif( USE_FUNC_TESTS )
option(USE_PERF_TESTS ON)
if( USE_PERF_TESTS )
message( STATUS "Enable performance tests" )
add_compile_definitions(USE_PERF_TESTS)
endif( USE_PERF_TESTS )