aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-02-20 17:49:50 +0100
committerMateja <mail@matejamaric.com>2021-02-20 17:49:50 +0100
commit73b0b6dfb1480a5301207b8ba1cc147715feb3a4 (patch)
treebb235bf62e4421db038ddcdec1220b7d8c5fdeab
parentb03e779e2385a54613c531504ef37d05bca7ab9b (diff)
downloaderender-0.6.tar.gz
erender-0.6.zip
Copy model to project directory.HEADv0.6master
Needed for CMake-GUI generated Visual Studio projects.
-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)