-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (28 loc) · 907 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
36
37
38
39
40
41
42
43
44
cmake_minimum_required(VERSION 3.0.0)
project(llbp VERSION 0.1.0 LANGUAGES C CXX)
set(CMAKE_CXX_STANDARD 20)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused-parameter")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -g")
SET(BASEPATH ${CMAKE_SOURCE_DIR})
INCLUDE_DIRECTORIES(${BASEPATH})
add_subdirectory(utils)
add_subdirectory(bpmodels)
## Create executable
set(TARGET_NAME predictor)
set(SOURCES
main.cc
btb/btb.cc
)
add_executable(${TARGET_NAME} ${SOURCES})
target_link_libraries(${TARGET_NAME}
utils
bpmodels)
target_compile_options(${TARGET_NAME} PRIVATE -Wall)
## Add boost library
find_package(Boost COMPONENTS program_options REQUIRED)
include_directories( ${Boost_INCLUDE_DIRS} )
target_link_libraries(${TARGET_NAME} ${Boost_LIBRARIES})