King_DuckZ
ab31e94bf0
Movement is hardcoded but it works. Also fixed some typos that gave me a hard time figuring out why movement was giving all sort of crazy problems. Very bad typos, see gameplaysceneclassic.cpp, inputbag.cpp, inputbag.hpp and key.hpp if you want to get goosebumps.
56 lines
1.2 KiB
CMake
56 lines
1.2 KiB
CMake
cmake_minimum_required(VERSION 2.8)
|
|
project(CloonelJump CXX)
|
|
|
|
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")
|
|
|
|
include(FindPkgConfig)
|
|
PKG_SEARCH_MODULE(SDL2 REQUIRED sdl2)
|
|
|
|
find_package(PNG REQUIRED)
|
|
|
|
add_definitions(${PNG_DEFINITIONS})
|
|
|
|
include_directories(SYSTEM
|
|
${SDL2_INCLUDE_DIR}
|
|
${PNG_INCLUDE_DIRS}
|
|
)
|
|
include_directories(
|
|
src
|
|
include
|
|
"${PROJECT_BINARY_DIR}"
|
|
lib/physfs-2.0.3
|
|
)
|
|
|
|
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)
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
src/main.cpp
|
|
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/mover.cpp
|
|
src/moveroneshot.cpp
|
|
src/moversine.cpp
|
|
src/gameplaysceneclassic.cpp
|
|
src/moverrelative.cpp
|
|
src/inputbag.cpp
|
|
src/moverleftright.cpp
|
|
)
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
${SDL2_LIBRARIES}
|
|
physfs
|
|
${PNG_LIBRARIES}
|
|
)
|