Update CMakeLists.txt

This commit is contained in:
Jack Christensen 2024-08-19 14:28:26 +00:00
parent 9b7d5b23c8
commit bb1e8ee3e1
1 changed files with 7 additions and 1 deletions

View File

@ -69,6 +69,12 @@ add_custom_target(copy_shaders ALL
${CMAKE_SOURCE_DIR}/shaders ${CMAKE_BINARY_DIR}/shaders
)
# Custom target for shaders
add_custom_target(copy_hgt ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_SOURCE_DIR}/hgt ${CMAKE_BINARY_DIR}/hgt
)
# Set subsystem based on build type
if (WIN32)
if (CMAKE_BUILD_TYPE STREQUAL "Release")
@ -79,4 +85,4 @@ if (WIN32)
endif()
# Ensure shaders are copied before building the executable
add_dependencies(TerraVisor copy_shaders)
add_dependencies(TerraVisor copy_shaders copy_hgt)