-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
46 lines (37 loc) · 1.19 KB
/
CMakeLists.txt
File metadata and controls
46 lines (37 loc) · 1.19 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
cmake_minimum_required(VERSION 3.16.3)
project(reactive)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(PUBLIC_HEADERS
include/reactive/Computation.h
include/reactive/Computations.h
include/reactive/Deferrer.h
include/reactive/Deferrable.h
include/reactive/Invalidateable.h
include/reactive/Latch.h
include/reactive/Var.h
)
add_library(reactive STATIC
${PUBLIC_HEADERS}
src/Computation.cpp
src/Computations.cpp
src/ComputationsImpl.cpp
src/ComputationsImpl.h
src/Deferrer.cpp
src/Var.cpp
)
#if(CMAKE_BUILD_TYPE MATCHES "Debug")
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fno-omit-frame-pointer")
# set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=address")
#endif()
install(TARGETS reactive
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
install(FILES ${PUBLIC_HEADERS}
DESTINATION include/reactive)
target_include_directories(reactive PRIVATE ./src)
target_include_directories(reactive PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
if (ENABLE_TESTING)
enable_testing()
add_subdirectory(tests)
endif ()