DoorKeeper/CMakeLists.txt

29 lines
671 B
Text
Raw Normal View History

2014-08-27 14:03:56 +00:00
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
2014-09-02 14:38:11 +00:00
project(doorkeeper CXX)
2014-08-27 14:03:56 +00:00
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11 -g -O0 -Wall -Wextra")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11 -O3 -Wall -Wextra")
#string(COMPARE EQUAL CMAKE_BINARY_DIR CMAKE_SOURCE_DIR IN_SOURCE_BUILD)
find_library(Boost 1.21.0 REQUIRED)
2014-12-12 19:04:48 +00:00
configure_file(
"${CMAKE_SOURCE_DIR}/src/${PROJECT_NAME}Config.h.in"
"${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.h"
)
include_directories(SYSTEM
${Boost_INCLUDE_DIRECTORIES}
)
2014-08-27 14:03:56 +00:00
include_directories(
src/
include/
2014-12-12 19:04:48 +00:00
"${PROJECT_BINARY_DIR}"
2014-08-27 14:03:56 +00:00
)
add_executable(${PROJECT_NAME}
src/main.cpp
src/doorkeeper.cpp
)