umbra/projs/test-game/CMakeLists.txt

17 lines
477 B
CMake
Raw Permalink Normal View History

find_package(SDL2 CONFIG REQUIRED)
set(CMAKE_CXX_STANDARD 20)
FILE(GLOB_RECURSE SOURCES src/*.cpp)
FILE(GLOB_RECURSE HEADERS src/*.h)
add_library(test-game SHARED ${SOURCES})
target_include_directories(test-game PRIVATE PUBLIC inc)
target_link_libraries(test-game PUBLIC shadow-engine)
add_custom_command(TARGET test-game
POST_BUILD
2022-11-29 17:52:54 +00:00
COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/resources ${CMAKE_CURRENT_BINARY_DIR}/resources
)