-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (28 loc) · 1022 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
cmake_minimum_required (VERSION 2.8.0 FATAL_ERROR)
project (Lyst CXX)
# Version numbers
set (Lyst_VERSION_MAJOR 0)
set (Lyst_VERSION_MINOR 1)
# Compiling options
option (USE_STRING_BLOCK "Set ON for std::string vectors, OFF for uint16_t vectors" ON )
option (STORE_COMP "Set ON to store vectors periodically. USE_STRING_BLOCK must be ON" OFF)
option (BREADTH_SEARCH "Set ON to do breadth-first search, OFF to use depth-first." OFF)
configure_file (
"${PROJECT_SOURCE_DIR}/src/lystConfig.h.in"
"${PROJECT_BINARY_DIR}/src/lystConfig.h"
)
# If we can avoid using C++14, do it. Travis doesn't like it yet
if (STORE_COMP AND USE_STRING_BLOCK)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -O3")
else ()
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -O3")
endif ()
# Adding extra libraries for displays and things
set (EXTRA_LIBS ${EXTRA_LIBS}
pthread
)
add_executable (Lyst
src/lyst.cpp
src/main.cpp
)
target_link_libraries (Lyst ${EXTRA_LIBS})