Skip to content

Commit

Permalink
robot: use foreach() instead
Browse files Browse the repository at this point in the history
  • Loading branch information
erysdren committed Apr 15, 2024
1 parent fc3ae66 commit 3c8d94e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions examples/robot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ target_link_libraries(robot PUBLIC BRender::Full)
set_property(TARGET robot PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/dat")
set_property(TARGET robot PROPERTY FOLDER "BRender/Examples")

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/dat/mask.pix ${CMAKE_CURRENT_BINARY_DIR}/mask.pix COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/dat/robo.act ${CMAKE_CURRENT_BINARY_DIR}/robo.act COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/dat/robo.dat ${CMAKE_CURRENT_BINARY_DIR}/robo.dat COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/dat/robo.msc ${CMAKE_CURRENT_BINARY_DIR}/robo.msc COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/dat/robo.vue ${CMAKE_CURRENT_BINARY_DIR}/robo.vue COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/dat/tile01_de.pix ${CMAKE_CURRENT_BINARY_DIR}/tile01_de.pix COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/dat/tile01.pix ${CMAKE_CURRENT_BINARY_DIR}/tile01.pix COPYONLY)
set(ROBOT_FILES mask.pix robo.act robo.dat robo.msc robo.vue tile01_de.pix tile01.pix)

foreach(file ${ROBOT_FILES})
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/dat/${file} ${CMAKE_CURRENT_BINARY_DIR}/${file} COPYONLY)
endforeach()

0 comments on commit 3c8d94e

Please sign in to comment.