-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
30 lines (21 loc) · 712 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
cmake_minimum_required(VERSION 3.10)
# set the project name
project(kbbq)
# specify the C++ standard
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)
# library stuff
add_subdirectory(src/minionrng)
#add_library(hts SHARED IMPORTED)
add_subdirectory(src/kbbq)
# add the executable
add_executable(kbbq-bin src/kbbq/kbbq.cc)
# force native build to enable vectorization
add_compile_options(-march=native)
# add libraries for linking
target_link_libraries(kbbq-bin kbbq)
target_include_directories(kbbq-bin PUBLIC
"${PROJECT_SOURCE_DIR}/include/kbbq"
)
set_target_properties(kbbq-bin PROPERTIES OUTPUT_NAME kbbq)
install(TARGETS kbbq-bin)