support older build systems
parent
3aec94269f
commit
46ae677175
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue