-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (29 loc) · 877 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
cmake_minimum_required(VERSION 3.10.2)
project(bpk)
get_property(GENERATOR_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
if (GENERATOR_IS_MULTI_CONFIG)
set(CMAKE_BUILD_TYPE)
elseif (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif ()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake-conan")
include(conan)
conan_cmake_run(
REQUIRES
boost_program_options/1.69.0@bincrafters/stable
boost_filesystem/1.69.0@bincrafters/stable
boost_regex/1.69.0@bincrafters/stable
CMAKE_TARGETS
BASIC_SETUP
KEEP_RPATHS
BUILD missing
)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME} src/main.cpp)
target_link_libraries(
${PROJECT_NAME}
PRIVATE
CONAN_PKG::boost_program_options
CONAN_PKG::boost_filesystem
CONAN_PKG::boost_regex
)