support older build systems

This commit is contained in:
mandlm 2018-03-31 22:11:26 +02:00
parent 3aec94269f
commit 46ae677175

View File

@ -1,14 +1,18 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.6)
project(BeezleBot LANGUAGES CXX)
find_package(Boost 1.60.0 COMPONENTS program_options REQUIRED)
find_package(Boost 1.55.0 COMPONENTS program_options REQUIRED)
add_executable(${PROJECT_NAME}
BeezleBot.cpp
settings.cpp
)
set_target_properties(${PROJECT_NAME}
PROPERTIES CXX_STANDARD 14
)
target_link_libraries(${PROJECT_NAME}
PRIVATE
Boost::program_options
@ -16,8 +20,3 @@ target_link_libraries(${PROJECT_NAME}
DokuWiki
)
target_compile_features(${PROJECT_NAME}
PRIVATE
cxx_std_17
)