Update CMakeLists.txt
This commit is contained in:
parent
9b7d5b23c8
commit
bb1e8ee3e1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue