paradiso/examples/tappyplane/CMakeLists.txt
brxxh 9cfee49590 Add tappyplane; Fix design problems
TappyPlane is the new QuickWings using the Kenney assets
2025-05-30 17:27:11 +02:00

18 lines
559 B
CMake

set(tappyplane_srcs tappyplane.cpp)
set(tappyplane_assets
assets/PNG/background.png
)
set_source_files_properties(${tappyplane_assets} PROPERTIES HEADER_FILE_ONLY TRUE)
add_executable(tappyplane ${tappyplane_srcs} ${tappyplane_assets})
target_link_libraries(tappyplane paradiso_core)
#
# copy files to bin/../assets folder
#
add_custom_command(TARGET tappyplane POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_CURRENT_SOURCE_DIR}/assets/
$<TARGET_FILE_DIR:tappyplane>/assets)