28 lines
879 B
CMake
28 lines
879 B
CMake
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
|
|
cmake_policy(SET CMP0040 NEW) #add_custom_command's target must exist
|
|
project(doorkeeper_lib CXX C)
|
|
|
|
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)
|
|
|
|
add_definitions(-DWITH_VECTOR_IOSTREAM)
|
|
|
|
find_library(Boost 1.53.0 REQUIRED)
|
|
|
|
add_library(${PROJECT_NAME} INTERFACE)
|
|
|
|
target_include_directories(${PROJECT_NAME} SYSTEM
|
|
INTERFACE ${Boost_INCLUDE_DIRECTORIES}
|
|
)
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/lib/sprout
|
|
)
|
|
|
|
add_subdirectory(lib/sprout)
|
|
add_subdirectory(src)
|
|
add_subdirectory(test)
|
|
add_subdirectory(game)
|
|
add_subdirectory(tools/mapconv)
|