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
|
IF(NOT EXISTS /usr/include/boost/xpressive/xpressive_dynamic.hpp)
message(FATAL_ERROR "missing Boost.Xpressive library")
ENDIF()
IF(NOT EXISTS /usr/include/boost/program_options.hpp)
message(FATAL_ERROR "missing Boost.ProgramOptions library")
ENDIF()
find_package(Boost 1.42.0)
IF(Boost_FOUND)
IF(Boost_VERSION LESS 1.42)
message(FATAL_ERROR "need Boost of version 1.42.0")
ENDIF(Boost_VERSION LESS 1.42)
ELSE()
message(FATAL_ERROR "missing Boost")
ENDIF()
IF(NOT EXISTS /usr/include/readline/readline.h)
message(FATAL_ERROR "missing GNU Readline library")
ENDIF()
OPTION(LOCAL "is build local" ON)
include(flags.cmake)
include(version.cmake)
include_directories(.)
add_subdirectory(console)
add_subdirectory(lib)
add_subdirectory(downloadmethods)
|