clooneljump/CMakeLists.txt

76 lines
1.6 KiB
Text
Raw Normal View History

2014-01-09 23:04:39 +00:00
cmake_minimum_required(VERSION 2.8)
project(CloonelJump CXX)
2014-02-11 22:36:43 +00:00
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -pedantic -Wconversion")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11 -Wall -Wextra -pedantic -Wconversion")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11 -Wall -Wextra -pedantic -Wconversion")
2014-01-09 23:04:39 +00:00
include(FindPkgConfig)
PKG_SEARCH_MODULE(SDL2 REQUIRED sdl2)
find_package(PNG REQUIRED)
find_package(Boost 1.55.0 REQUIRED)
add_definitions(
${PNG_DEFINITIONS}
-DWITH_VERBOSE_OBS_MANAGER
-DWITH_VERBOSE_COLLIDER
)
2014-01-09 23:04:39 +00:00
include_directories(SYSTEM
${SDL2_INCLUDE_DIR}
${PNG_INCLUDE_DIRS}
2014-07-05 18:49:18 +00:00
${Boost_INCLUDE_DIRS}
lib/tree-2.81/src
2014-01-09 23:04:39 +00:00
)
include_directories(
src
src/movers
2014-01-09 23:04:39 +00:00
include
"${PROJECT_BINARY_DIR}"
lib/physfs-2.0.3
2014-01-09 23:04:39 +00:00
)
configure_file(
"${PROJECT_SOURCE_DIR}/src/${PROJECT_NAME}Config.h.in"
"${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.h"
)
add_subdirectory(lib/physfs-2.0.3)
2014-01-09 23:04:39 +00:00
add_executable(${PROJECT_NAME}
src/main.cpp
2014-02-08 22:11:26 +00:00
src/texture.cpp
src/sdlerror.cpp
src/sdlmain.cpp
src/gamebase.cpp
src/character.cpp
src/placeable.cpp
src/physicsfswrapper.cpp
src/gameplayscene.cpp
src/movers/mover.cpp
src/movers/moveroneshot.cpp
src/movers/moversine.cpp
src/gameplaysceneclassic.cpp
src/movers/moverrelative.cpp
2014-02-23 18:32:47 +00:00
src/inputbag.cpp
src/movers/moverleftright.cpp
src/tiledwallpaper.cpp
src/drawable.cpp
src/sizeratio.cpp
src/sizenotifiable.cpp
2014-07-28 09:00:55 +00:00
src/horzcollisionbar.cpp
src/platform.cpp
src/vectormath.cpp
src/platformsystem.cpp
src/movers/moverworld.cpp
src/line.cpp
2014-07-28 09:00:55 +00:00
src/collider.cpp
2014-01-09 23:04:39 +00:00
)
target_link_libraries(${PROJECT_NAME}
${SDL2_LIBRARIES}
physfs
${PNG_LIBRARIES}
2014-01-09 23:04:39 +00:00
)