2014-05-10 08:31:42 +00:00
|
|
|
cmake_minimum_required( VERSION 2.6 )
|
|
|
|
|
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
|
|
|
)
|
|
|
|
|
2015-01-23 18:10:36 +00:00
|
|
|
SET_PROPERTY(TARGET assimp_cmd PROPERTY DEBUG_POSTFIX ${CMAKE_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
|
|
|
|
2015-03-19 10:37:58 +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
|
2015-01-23 18:10:36 +00:00
|
|
|
)
|