-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
44 lines (32 loc) · 866 Bytes
/
CMakeLists.txt
File metadata and controls
44 lines (32 loc) · 866 Bytes
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
cmake_minimum_required(VERSION 3.16)
# set the project name
project(KFF)
project(KFF VERSION 1.0)
configure_file(${PROJECT_SOURCE_DIR}/kff_io.hpp.in ${CMAKE_BINARY_DIR}/kff_io.hpp)
configure_file(
${PROJECT_SOURCE_DIR}/kff_io.hpp.in
${CMAKE_BINARY_DIR}/kff_io.hpp
)
# specify the C++ standard
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED True)
# set(CMAKE_BUILD_TYPE Debug)
include_directories(${CMAKE_BINARY_DIR})
if (NOT CMAKE_CXX_FLAGS)
set(CMAKE_CXX_FLAGS "-Wall -Ofast -g")
endif()
add_subdirectory("benchmarks")
add_library(kff kff_io.cpp)
target_include_directories(kff
PUBLIC
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}>
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}>
$<INSTALL_INTERFACE:include>
)
# add the executable
add_executable(kff_example
main.cpp
)
target_link_libraries(kff_example
kff
)