-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (33 loc) · 1.27 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
43
44
45
cmake_minimum_required(VERSION 3.9)
project(QuAK)
OPTION(ENABLE_SCC_SEARCH_OPT "Enable SCC search optimization in FORKLIFT" ON)
OPTION(ENABLE_CONTEXT_REDUNDANCY_OPT "Enable context redundancy optimization in FORKLIFT" OFF)
# comparing floats for == is unreliable, we assume they are equal
# if their absolute difference is less than this constant
add_compile_definitions(WEIGHT_EQ_EPSILON=10e-5f)
if (ENABLE_SCC_SEARCH_OPT)
add_compile_definitions(INCLUSION_SCC_SEARCH_ACTIVE)
endif()
if (ENABLE_CONTEXT_REDUNDANCY_OPT)
add_compile_definitions(CONTEXT_REDUNDANCY_ACTIVE)
endif()
OPTION(ENABLE_IPO "Enable interprocedural optimizations" OFF)
if (ENABLE_IPO)
cmake_policy(SET CMP0069 NEW)
include(CheckIPOSupported)
check_ipo_supported()
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
endif(ENABLE_IPO)
#set(CMAKE_VERBOSE_MAKEFILE 1)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
add_subdirectory(src)
add_executable(quakbin src/quak-main.cpp)
target_include_directories(quakbin PRIVATE ${SRCDIR})
target_link_libraries(quakbin PUBLIC quak quak-private)
set_target_properties(quakbin PROPERTIES OUTPUT_NAME quak)
OPTION(BUILD_EXPERIMENTS "Enable and build experiments" ON)
add_subdirectory(experiments)
enable_testing()
add_subdirectory(tests)