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 9ed7983..666ab06 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -52,3 +52,10 @@ add_custom_command(
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_SOURCE_DIR}/model
$<TARGET_FILE_DIR:${PROJECT_NAME}>/model)
+
+# Copy model to project directory
+add_custom_command(
+ TARGET ${PROJECT_NAME} POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy_directory
+ ${CMAKE_SOURCE_DIR}/model
+ ${CMAKE_CURRENT_BINARY_DIR}/model)