diff --git a/CMakeLists.txt b/CMakeLists.txt index 0fdccab..0cf8643 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)