Skip to content
Open
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
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,18 @@ target_link_libraries(BlackHole3D PRIVATE ${DEPS})
target_include_directories(BlackHole3D PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})

# Shader files (copy to output dir)
file(GLOB SHADERS
file
(
GLOB SHADERS
"${CMAKE_CURRENT_SOURCE_DIR}/*.vert"
"${CMAKE_CURRENT_SOURCE_DIR}/*.frag"
"${CMAKE_CURRENT_SOURCE_DIR}/*.comp"
)

foreach(shader ${SHADERS})
add_custom_command(TARGET BlackHole3D POST_BUILD
add_custom_command
(
TARGET BlackHole3D POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${shader}
$<TARGET_FILE_DIR:BlackHole3D>
Expand Down