forked from Kingsford-Group/kbf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (24 loc) · 983 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
cmake_minimum_required(VERSION 3.13.0)
project(qtf VERSION 0.1.0)
set(CONTACT "[email protected]")
set(CMAKE_CXX_STANDARD 17) # TODO: find why this does not work if I overwrite CMAKE_CXX_COMPILER (even before)
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++17")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
# thirdparty source directories
# set(THIRDPARTY_DIR ${PROJECT_SOURCE_DIR}/thirdparty)
# thirdparty build directories
# set(THIRDPARTY_BUILD_DIR ${PROJECT_BINARY_DIR}/thirdparty)
# include thridparty directories
include_directories(SYSTEM thirdparty/libbf)
include_directories(SYSTEM thirdparty/boost/install/include)
link_directories(thirdparty/bf/build/lib)
# add libbf
add_subdirectory(thirdparty/libbf)
add_executable(kbf src/main.cpp)
add_executable(kbf2only src/main2kbf.cpp)
target_link_libraries(kbf libbf_static)
target_link_libraries(kbf2only libbf_static)