Added some structuring.

The game runs but only a black window is shown.
This commit is contained in:
King_DuckZ 2014-02-21 21:28:34 +01:00
parent f132916a0f
commit d0893cba3a
16 changed files with 296 additions and 88 deletions

View file

@ -8,8 +8,13 @@ set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11 -Wall -Wextra
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
@ -30,14 +35,19 @@ add_executable(${PROJECT_NAME}
src/texture.cpp
src/sdlerror.cpp
src/sdlmain.cpp
src/game.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
)
target_link_libraries(${PROJECT_NAME}
${SDL2_LIBRARIES}
physfs
${PNG_LIBRARIES}
)