Copy assimp dll to unit folder on windows

pull/1590/head
Alexandre Avenel 2017-11-24 19:50:25 +01:00
parent 35819340aa
commit d8d5cf1a2d
1 changed files with 7 additions and 0 deletions

View File

@ -177,6 +177,13 @@ ELSE( WIN32 )
SET( platform_libs pthread )
ENDIF( WIN32 )
IF( WIN32 )
ADD_CUSTOM_COMMAND(TARGET unit
PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:assimp> $<TARGET_FILE_DIR:unit>
MAIN_DEPENDENCY assimp)
ENDIF( WIN32 )
IF(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
ENDIF(MSVC)