aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4f43cfa..39ff383 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,3 +36,10 @@ add_subdirectory(external/SFML)
target_include_directories(${PROJECT_NAME} PUBLIC external/SFML/include)
target_link_directories(${PROJECT_NAME} PUBLIC external/SFML/lib)
target_link_libraries(${PROJECT_NAME} sfml-graphics sfml-window sfml-system)
+
+# Copy model to build directory
+add_custom_command(
+ TARGET ${PROJECT_NAME} POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy_directory
+ ${CMAKE_SOURCE_DIR}/model
+ ${CMAKE_CURRENT_BINARY_DIR}/model)