2014-01-09 23:04:39 +00:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
project(CloonelJump CXX)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11")
|
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11")
|
|
|
|
|
|
|
|
include(FindPkgConfig)
|
|
|
|
PKG_SEARCH_MODULE(SDL2 REQUIRED sdl2)
|
|
|
|
|
|
|
|
include_directories(SYSTEM
|
|
|
|
${SDL2_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
include_directories(
|
|
|
|
src
|
|
|
|
include
|
|
|
|
"${PROJECT_BINARY_DIR}"
|
|
|
|
)
|
|
|
|
|
|
|
|
configure_file(
|
|
|
|
"${PROJECT_SOURCE_DIR}/src/${PROJECT_NAME}Config.h.in"
|
|
|
|
"${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.h"
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
|
|
src/main.cpp
|
2014-02-08 22:11:26 +00:00
|
|
|
src/texture.cpp
|
|
|
|
src/sdlerror.cpp
|
|
|
|
src/sdlmain.cpp
|
2014-02-08 23:32:11 +00:00
|
|
|
src/game.cpp
|
|
|
|
src/gamebase.cpp
|
2014-01-09 23:04:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
|
|
${SDL2_LIBRARIES}
|
|
|
|
)
|