Michele Santullo
20a7e0450d
Don't use surfaces, SDL2_image lets you create a texture directly. This is missing the graphic files that the code seeks to load so it will not run.
27 lines
560 B
CMake
27 lines
560 B
CMake
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
|
|
project(doorkeepertest CXX)
|
|
|
|
include(FindPkgConfig)
|
|
pkg_search_module(SDL2 REQUIRED sdl2)
|
|
pkg_search_module(SDL2IMAGE REQUIRED SDL2_image>=2.0.0)
|
|
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}"
|
|
${SDL2_INCLUDE_DIR}
|
|
)
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
doorkeeper.cpp
|
|
main.cpp
|
|
)
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
doorkeeper
|
|
${SDL2_LIBRARIES}
|
|
${SDL2IMAGE_LIBRARIES}
|
|
)
|