-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
42 lines (32 loc) · 1.31 KB
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.15)
project(JAMScript DESCRIPTION "JAMScript Scheduler & Runtime" LANGUAGES C CXX ASM)
set(CMAKE_BUILD_TYPE RelWithDebInfo) # Debug with RelWithDebInfo
option(JAMSCRIPT_ON_TRAVIS_OPT "Run on Travis CI" OFF)
option(JAMSCRIPT_ENABLE_VALGRIND_OPT "Enable valgrind" OFF)
option(JAMSCRIPT_SCHED_AI_EXP_OPT "Print scheduling info" OFF)
option(JAMSCRIPT_BLOCK_WAIT_OPT "Blocking wait to reduce CPU usage when there is no task" ON)
option(JAMSCRIPT_DEBUG_LINEINFO_OPT "Add line info in debug message" OFF)
option(JAMSCRIPT_TEST_BENCHMARKING_OPT "Benchmarking while testing" OFF)
if(JAMSCRIPT_ON_TRAVIS_OPT)
add_compile_definitions(JAMSCRIPT_ON_TRAVIS)
endif(JAMSCRIPT_ON_TRAVIS_OPT)
if(JAMSCRIPT_ENABLE_VALGRIND_OPT)
add_compile_definitions(JAMSCRIPT_ENABLE_VALGRIND)
endif(JAMSCRIPT_ENABLE_VALGRIND_OPT)
if(JAMSCRIPT_SCHED_AI_EXP_OPT)
add_compile_definitions(JAMSCRIPT_SCHED_AI_EXP)
endif(JAMSCRIPT_SCHED_AI_EXP_OPT)
if(JAMSCRIPT_BLOCK_WAIT_OPT)
add_compile_definitions(JAMSCRIPT_BLOCK_WAIT)
endif(JAMSCRIPT_BLOCK_WAIT_OPT)
add_subdirectory(src)
add_subdirectory(app)
add_subdirectory(test)
enable_testing()
add_test(NAME jamtest COMMAND test-main)
find_package(Doxygen)
if(Doxygen_FOUND)
add_subdirectory(docs)
else()
message(STATUS "Doxygen not found, not building docs")
endif()