summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2022-03-23 18:09:08 -0600
committercflip <cflip@cflip.net>2022-03-23 18:09:08 -0600
commit10b41cc429b5c14023fa3bee0b09040fef1b2929 (patch)
tree4d2a6850b07d4bf60ddadc46fd12a47dc4014c0c /src/CMakeLists.txt
parent47b454c6c2266f17e29797e435e71b2d496885a0 (diff)
Automatically copy resources to build directory
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d290495..b30b333 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -23,3 +23,9 @@ target_link_libraries(
PRIVATE
SDL2::SDL2
)
+
+add_custom_command(
+ TARGET Nonortho POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/res $<TARGET_FILE_DIR:Nonortho>/res
+ COMMENT "Copying resources" VERBATIM
+)