2010-03-04 17:47:39 +00:00
|
|
|
INCLUDE_DIRECTORIES(
|
|
|
|
${Assimp_SOURCE_DIR}/include
|
|
|
|
${Assimp_SOURCE_DIR}/code
|
|
|
|
)
|
|
|
|
|
|
|
|
LINK_DIRECTORIES( ${Assimp_BINARY_DIR} ${Assimp_BINARY_DIR}/lib )
|
|
|
|
|
|
|
|
ADD_EXECUTABLE( assimp_cmd
|
|
|
|
assimp_cmd.rc
|
|
|
|
CompareDump.cpp
|
|
|
|
ImageExtractor.cpp
|
|
|
|
Main.cpp
|
|
|
|
Main.h
|
|
|
|
resource.h
|
|
|
|
WriteDumb.cpp
|
|
|
|
Info.cpp
|
2011-04-03 11:44:09 +00:00
|
|
|
Export.cpp
|
2010-03-04 17:47:39 +00:00
|
|
|
)
|
|
|
|
|
2012-07-17 22:56:15 +00:00
|
|
|
SET_PROPERTY(TARGET assimp_cmd PROPERTY DEBUG_POSTFIX ${ASSIMP_DEBUG_POSTFIX})
|
2012-02-18 10:55:47 +00:00
|
|
|
|
2013-09-18 12:10:26 +00:00
|
|
|
IF( WIN32 )
|
|
|
|
ADD_CUSTOM_COMMAND(TARGET assimp_cmd
|
|
|
|
PRE_BUILD
|
2013-09-18 12:42:42 +00:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:assimp> $<TARGET_FILE_DIR:assimp_cmd>
|
|
|
|
MAIN_DEPENDENCY assimp)
|
2013-09-18 12:10:26 +00:00
|
|
|
ENDIF( WIN32 )
|
2013-09-18 11:55:02 +00:00
|
|
|
|
2011-05-09 19:34:21 +00:00
|
|
|
TARGET_LINK_LIBRARIES( assimp_cmd assimp ${ZLIB_LIBRARIES})
|
2010-03-04 17:47:39 +00:00
|
|
|
SET_TARGET_PROPERTIES( assimp_cmd PROPERTIES
|
|
|
|
OUTPUT_NAME assimp
|
|
|
|
)
|
|
|
|
|
|
|
|
INSTALL( TARGETS assimp_cmd
|
2012-07-17 22:56:15 +00:00
|
|
|
DESTINATION "${ASSIMP_BIN_INSTALL_DIR}" COMPONENT assimp-bin
|
2010-03-04 17:47:39 +00:00
|
|
|
)
|