-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
36 lines (27 loc) · 1.01 KB
/
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
##
## Copyright Troy D. Straszheim 2009
##
## Distributed under the Boost Software License, Version 1.0
## See http://www.boost.org/LICENSE_1.0.txt
##
cmake_minimum_required(VERSION 2.6)
include(CheckIncludeFiles)
check_include_files("readline/readline.h;readline/history.h" USE_READLINE)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build debug by default" FORCE)
set(CMAKE_CXX_FLAGS "-Wall")
if(USE_READLINE)
message(STATUS "readline/readline.h found, enabling readline")
endif()
#
# This thing builds with basically any boost > 1.40 or so, modulo
# boost.spirit >= 1.41.0. Boost.Spirit is header-only so the 1.44
# headers are included here
#
find_package(Boost 1.40.0 COMPONENTS program_options)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.hpp.in
${CMAKE_CURRENT_BINARY_DIR}/config.hpp)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
# add_subdirectory(cmake)
add_subdirectory(src)