2014-12-22 15:59:09 +00:00
|
|
|
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
|
|
|
|
project(doorkeepertest CXX)
|
|
|
|
|
2015-05-21 07:54:59 +00:00
|
|
|
include(FindPkgConfig)
|
2015-05-21 16:14:07 +00:00
|
|
|
pkg_search_module(SDL2 REQUIRED sdl2)
|
2015-05-21 07:54:59 +00:00
|
|
|
pkg_search_module(SDL2IMAGE REQUIRED SDL2_image>=2.0.0)
|
2014-12-22 15:59:09 +00:00
|
|
|
configure_file(
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}Config.h.in"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.h"
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}"
|
2015-05-21 07:54:59 +00:00
|
|
|
${SDL2_INCLUDE_DIR}
|
2014-12-22 15:59:09 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
|
|
doorkeeper.cpp
|
|
|
|
main.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
|
|
doorkeeper
|
2015-05-21 07:54:59 +00:00
|
|
|
${SDL2_LIBRARIES}
|
2015-05-21 16:14:07 +00:00
|
|
|
${SDL2IMAGE_LIBRARIES}
|
2014-12-22 15:59:09 +00:00
|
|
|
)
|