diff options
author | Mateja <mail@matejamaric.com> | 2021-02-20 17:49:50 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-02-20 17:49:50 +0100 |
commit | 73b0b6dfb1480a5301207b8ba1cc147715feb3a4 (patch) | |
tree | bb235bf62e4421db038ddcdec1220b7d8c5fdeab | |
parent | b03e779e2385a54613c531504ef37d05bca7ab9b (diff) | |
download | erender-0.6.tar.gz erender-0.6.zip |
Needed for CMake-GUI generated Visual Studio projects.
-rw-r--r-- | CMakeLists.txt | 7 |
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) |