Split files in jumping into two libraries.
Files in cloonelgraphics could be further split, but this should be enough for the time being.
This commit is contained in:
parent
706f1aaa0a
commit
3ed0a214da
23 changed files with 27 additions and 13 deletions
|
@ -98,6 +98,7 @@ endif(NOT PHYSFS_FOUND)
|
||||||
|
|
||||||
add_subdirectory(src/jumping)
|
add_subdirectory(src/jumping)
|
||||||
add_subdirectory(src/clooneljump)
|
add_subdirectory(src/clooneljump)
|
||||||
|
add_subdirectory(src/cloonelgraphics)
|
||||||
if (BUILD_TESTING)
|
if (BUILD_TESTING)
|
||||||
add_subdirectory(test/unit)
|
add_subdirectory(test/unit)
|
||||||
endif()
|
endif()
|
||||||
|
|
25
src/cloonelgraphics/CMakeLists.txt
Normal file
25
src/cloonelgraphics/CMakeLists.txt
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
project(cloonelgraphics CXX)
|
||||||
|
|
||||||
|
add_library(${PROJECT_NAME}
|
||||||
|
texture.cpp
|
||||||
|
sdlerror.cpp
|
||||||
|
sdlmain.cpp
|
||||||
|
physicsfswrapper.cpp
|
||||||
|
sizeratio.cpp
|
||||||
|
sizenotifiable.cpp
|
||||||
|
inputbag.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(${PROJECT_NAME}
|
||||||
|
PRIVATE ${SDL2_LIBRARIES}
|
||||||
|
PRIVATE ${PHYSFS_LIBRARY}
|
||||||
|
PRIVATE ${PNG_LIBRARIES}
|
||||||
|
PUBLIC CloonelJumpProject
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(${PROJECT_NAME}
|
||||||
|
PRIVATE ${SDL2_INCLUDE_DIR}
|
||||||
|
PRIVATE ${PNG_INCLUDE_DIRS}
|
||||||
|
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
PRIVATE ${PHYSFS_INCLUDE_DIR}
|
||||||
|
)
|
|
@ -1,25 +1,18 @@
|
||||||
project(jumping CXX)
|
project(jumping CXX)
|
||||||
|
|
||||||
add_library(${PROJECT_NAME}
|
add_library(${PROJECT_NAME}
|
||||||
texture.cpp
|
|
||||||
sdlerror.cpp
|
|
||||||
sdlmain.cpp
|
|
||||||
gamebase.cpp
|
gamebase.cpp
|
||||||
character.cpp
|
character.cpp
|
||||||
placeable.cpp
|
placeable.cpp
|
||||||
physicsfswrapper.cpp
|
|
||||||
gameplayscene.cpp
|
gameplayscene.cpp
|
||||||
movers/mover.cpp
|
movers/mover.cpp
|
||||||
movers/moveroneshot.cpp
|
movers/moveroneshot.cpp
|
||||||
movers/moversine.cpp
|
movers/moversine.cpp
|
||||||
gameplaysceneclassic.cpp
|
gameplaysceneclassic.cpp
|
||||||
movers/moverrelative.cpp
|
movers/moverrelative.cpp
|
||||||
inputbag.cpp
|
|
||||||
movers/moverleftright.cpp
|
movers/moverleftright.cpp
|
||||||
tiledwallpaper.cpp
|
tiledwallpaper.cpp
|
||||||
drawable.cpp
|
drawable.cpp
|
||||||
sizeratio.cpp
|
|
||||||
sizenotifiable.cpp
|
|
||||||
horzcollisionbar.cpp
|
horzcollisionbar.cpp
|
||||||
platform.cpp
|
platform.cpp
|
||||||
vectormath.cpp
|
vectormath.cpp
|
||||||
|
@ -32,18 +25,13 @@ add_library(${PROJECT_NAME}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(${PROJECT_NAME}
|
target_link_libraries(${PROJECT_NAME}
|
||||||
PRIVATE ${SDL2_LIBRARIES}
|
|
||||||
PRIVATE ${PHYSFS_LIBRARY}
|
|
||||||
PRIVATE ${PNG_LIBRARIES}
|
|
||||||
PUBLIC CloonelJumpProject
|
PUBLIC CloonelJumpProject
|
||||||
|
PUBLIC cloonelgraphics
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(${PROJECT_NAME}
|
target_include_directories(${PROJECT_NAME}
|
||||||
PRIVATE ${SDL2_INCLUDE_DIR}
|
|
||||||
PRIVATE ${PNG_INCLUDE_DIRS}
|
|
||||||
PRIVATE .
|
PRIVATE .
|
||||||
PRIVATE movers
|
PRIVATE movers
|
||||||
PRIVATE ${PHYSFS_INCLUDE_DIR}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_definitions(${PROJECT_NAME}
|
target_compile_definitions(${PROJECT_NAME}
|
||||||
|
|
Loading…
Reference in a new issue