support older build systems

main
mandlm 2018-03-31 22:11:26 +02:00
parent 3aec94269f
commit 46ae677175
1 changed files with 6 additions and 7 deletions

View File

@ -1,14 +1,18 @@
cmake_minimum_required(VERSION 3.5) cmake_minimum_required(VERSION 3.6)
project(BeezleBot LANGUAGES CXX) 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} add_executable(${PROJECT_NAME}
BeezleBot.cpp BeezleBot.cpp
settings.cpp settings.cpp
) )
set_target_properties(${PROJECT_NAME}
PROPERTIES CXX_STANDARD 14
)
target_link_libraries(${PROJECT_NAME} target_link_libraries(${PROJECT_NAME}
PRIVATE PRIVATE
Boost::program_options Boost::program_options
@ -16,8 +20,3 @@ target_link_libraries(${PROJECT_NAME}
DokuWiki DokuWiki
) )
target_compile_features(${PROJECT_NAME}
PRIVATE
cxx_std_17
)