forked from snakster/cpp.react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
40 lines (31 loc) · 953 Bytes
/
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
### Configuration
cmake_minimum_required (VERSION 2.6)
project (CppReact)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wpedantic")
include_directories ("${PROJECT_SOURCE_DIR}/include")
### CppReact
add_library(CppReact
src/engine/PulsecountEngine.cpp
src/engine/SubtreeEngine.cpp
src/engine/ToposortEngine.cpp
src/logging/EventLog.cpp
src/logging/EventRecords.cpp)
target_link_libraries(CppReact tbb)
### examples/
option(build_examples "Build examples?" ON)
if(build_examples)
add_subdirectory(examples)
endif()
### benchmarks/
option(build_benchmarks "Build benchmarks?" OFF)
if(build_benchmarks)
add_subdirectory(benchmarks)
endif()
### tests/
option(build_tests "Build unit tests?" OFF)
if(build_tests)
add_subdirectory(tests)
endif()