-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
36 lines (27 loc) · 1.46 KB
/
CMakeLists.txt
File metadata and controls
36 lines (27 loc) · 1.46 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
cmake_minimum_required(VERSION 2.6)
# Set a default build type if none was specified
if(NOT CMAKE_BUILD_TYPE)
message(STATUS "Setting build type to 'Release' as none was specified.")
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
endif()
#set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/.. )
set (CMAKE_CXX_STANDARD 14)
project (substring-complexity)
include_directories(${PROJECT_SOURCE_DIR})
include_directories(~/include) #SDSL headers are here
include_directories(${PROJECT_SOURCE_DIR}/include/DYNAMIC/include)
include_directories(${PROJECT_SOURCE_DIR}/include/hopscotch-map/include)
#include_directories(${PROJECT_SOURCE_DIR}/include/miller-rabin)
INCLUDE_DIRECTORIES(include/cpp-HyperLogLog/include include/cpp-HyperLogLog/extlib/igloo include/cpp-HyperLogLog/extlib/igloo-TapTestListener)
LINK_DIRECTORIES(~/lib) #SDSL lib are here
#LINK_DIRECTORIES(~/count) #SDSL lib are here
message("Building in ${CMAKE_BUILD_TYPE} mode")
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -ggdb -g -Wno-deprecated")
set(CMAKE_CXX_FLAGS_RELEASE "-g -ggdb -Ofast -fstrict-aliasing -DNDEBUG -march=native -Wno-deprecated")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g -ggdb -Ofast -fstrict-aliasing -march=native -Wno-deprecated")
add_executable(delta delta.cpp)
add_executable(delta-stream delta-stream.cpp)
TARGET_LINK_LIBRARIES(delta sdsl)
TARGET_LINK_LIBRARIES(delta-stream sdsl pthread)
TARGET_LINK_LIBRARIES(delta divsufsort)
TARGET_LINK_LIBRARIES(delta divsufsort64)