forked from Hartmut/paradiso
refactored example by Robin
This commit is contained in:
parent
f452b40000
commit
5e6630a92d
18 changed files with 247 additions and 124 deletions
20
examples/quickwings/CMakeLists.txt
Normal file
20
examples/quickwings/CMakeLists.txt
Normal file
|
@ -0,0 +1,20 @@
|
|||
set(quickwings_srcs quickwings.cpp)
|
||||
set(quickwings_assets
|
||||
assets/background-day.png
|
||||
assets/base.png
|
||||
assets/pipe-green.png
|
||||
assets/yellowbird-downflap.png
|
||||
assets/yellowbird-midflap.png
|
||||
assets/yellowbird-upflap.png
|
||||
)
|
||||
|
||||
set_source_files_properties(${quickwings_assets} PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
|
||||
add_executable(quickwings ${quickwings_srcs} ${quickwings_assets})
|
||||
|
||||
target_link_libraries(quickwings paradiso_core)
|
||||
|
||||
add_custom_command(TARGET quickwings POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/assets/ $<TARGET_FILE_DIR:quickwings>/assets)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue