From bb1e8ee3e1b6297c78189d6ee90783efc7c068a0 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Mon, 19 Aug 2024 14:28:26 +0000 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)