Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy files in examples #34

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions examples/cube/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ target_compile_definitions(cube PUBLIC -DSDL_MAIN_HANDLED)
target_link_libraries(cube BRender::Full)
set_property(TARGET cube PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../dat")
set_property(TARGET cube PROPERTY FOLDER "BRender/Examples")

set(CUBE_FILES cube.dat checkerboard.mat checkerboard.pix)

foreach(file ${CUBE_FILES})
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../dat/${file} ${CMAKE_CURRENT_BINARY_DIR}/${file} COPYONLY)
endforeach()
8 changes: 7 additions & 1 deletion examples/robot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ add_executable(robot
target_compile_definitions(robot PUBLIC -DSDL_MAIN_HANDLED)
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")
set_property(TARGET robot PROPERTY FOLDER "BRender/Examples")

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()
6 changes: 6 additions & 0 deletions examples/samples/rdemo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ target_compile_definitions(rdemo PUBLIC -DSDL_MAIN_HANDLED)
target_link_libraries(rdemo BRender::Full dosbase)
set_property(TARGET sheet PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/dat")
set_property(TARGET rdemo PROPERTY FOLDER "BRender/Examples/Samples")

set(RDEMO_FILES ast.pix earth.pix moon.pix shade.tab sph32.dat std.pal teapot.dat testenv1.pix)

foreach(file ${RDEMO_FILES})
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/dat/${file} ${CMAKE_CURRENT_BINARY_DIR}/${file} COPYONLY)
endforeach()
6 changes: 6 additions & 0 deletions examples/samples/sheet/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ target_compile_definitions(sheet PUBLIC -DSDL_MAIN_HANDLED)
target_link_libraries(sheet BRender::Full dosbase)
set_property(TARGET sheet PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/dat")
set_property(TARGET sheet PROPERTY FOLDER "BRender/Examples/Samples")

set(SHEET_FILES 8ball.pix earth.pix rivrock1.pix shade.tab sheet.mat sph32.dat std.pal wirscrn2.pix)

foreach(file ${SHEET_FILES})
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/dat/${file} ${CMAKE_CURRENT_BINARY_DIR}/${file} COPYONLY)
endforeach()
8 changes: 7 additions & 1 deletion examples/softcube/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,10 @@ add_executable(softcube24 main.c)
target_compile_definitions(softcube24 PUBLIC -DSDL_MAIN_HANDLED)
target_link_libraries(softcube24 BRender::Full BRender::DDI)
set_property(TARGET softcube24 PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../dat")
set_property(TARGET softcube24 PROPERTY FOLDER "BRender/Examples")
set_property(TARGET softcube24 PROPERTY FOLDER "BRender/Examples")

set(SOFTCUBE_FILES cube.dat checkerboard8.mat checkerboard8.pix checkerboard24.mat checkerboard24.pix)

foreach(file ${SOFTCUBE_FILES})
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../dat/${file} ${CMAKE_CURRENT_BINARY_DIR}/${file} COPYONLY)
endforeach()
11 changes: 11 additions & 0 deletions examples/tutorials/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,14 @@ add_example(brtutor8b)
add_example(brtutor9)
add_example(brtutor10)

set(TUTORIAL_FILES cube.mat cube8.mat cylinder.dat duck.3ds duck.dat duck.mat
duck8.mat e.png e.tga earth.mat earth15.pix earth8.mat earth8.pix
fork.3ds fork.asc fork.dat fork.mat gold.gif gold15.mat gold15.pix
gold8.mat gold8.pix mkranges.txt refmap.gif refmap.pix refmap.png
refmap.tga shade.tab sph16.dat sph32.dat sph4096.dat sph8.dat std.pal
strippal.txt tile.pix tile0011.tga torus.dat
)

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