2017-10-03 12:33:25 +00:00
|
|
|
IF(assimp_FIND_REQUIRED)
|
|
|
|
SET(ASSIMP_FIND_REQUIRED ON)
|
|
|
|
ENDIF()
|
|
|
|
|
2015-09-19 14:46:59 +00:00
|
|
|
FIND_PATH(
|
2017-10-03 12:33:25 +00:00
|
|
|
ASSIMP_INCLUDE_DIRS
|
2015-09-19 14:46:59 +00:00
|
|
|
NAMES assimp/postprocess.h assimp/scene.h assimp/version.h assimp/config.h assimp/cimport.h
|
|
|
|
PATHS /usr/local/include/
|
|
|
|
)
|
|
|
|
|
|
|
|
FIND_LIBRARY(
|
2017-10-03 12:33:25 +00:00
|
|
|
ASSIMP_LIBRARY_RELEASE
|
2015-09-19 14:46:59 +00:00
|
|
|
NAMES assimp
|
|
|
|
PATHS /usr/local/lib/
|
|
|
|
)
|
|
|
|
|
2017-10-03 12:33:25 +00:00
|
|
|
FIND_LIBRARY(
|
|
|
|
IRRXML_LIBRARY_RELEASE
|
|
|
|
NAMES IrrXML
|
|
|
|
PATHS /usr/local/lib/
|
|
|
|
)
|
|
|
|
|
|
|
|
FIND_LIBRARY(
|
|
|
|
ASSIMP_LIBRARY_DEBUG
|
|
|
|
NAMES assimpd
|
|
|
|
PATHS /usr/local/lib/
|
|
|
|
)
|
|
|
|
|
|
|
|
FIND_LIBRARY(
|
|
|
|
IRRXML_LIBRARY_DEBUG
|
|
|
|
NAMES IrrXMLd
|
|
|
|
PATHS /usr/local/lib/
|
|
|
|
)
|
|
|
|
|
|
|
|
IF (ASSIMP_INCLUDE_DIRS)
|
|
|
|
SET(ASSIMP_FOUND TRUE)
|
|
|
|
IF(ASSIMP_LIBRARY_RELEASE)
|
|
|
|
SET(ASSIMP_LIBRARIES ${ASSIMP_LIBRARIES} optimized ${ASSIMP_LIBRARY_RELEASE})
|
|
|
|
ENDIF()
|
|
|
|
IF(ASSIMP_LIBRARY_DEBUG)
|
|
|
|
SET(ASSIMP_LIBRARIES ${ASSIMP_LIBRARIES} debug ${ASSIMP_LIBRARY_DEBUG})
|
|
|
|
ENDIF()
|
2015-11-30 13:19:38 +00:00
|
|
|
FIND_PACKAGE(ZLIB)
|
|
|
|
IF(ZLIB_FOUND)
|
2017-10-03 12:33:25 +00:00
|
|
|
SET(ASSIMP_LIBRARIES ${ASSIMP_LIBRARIES} ${ZLIB_LIBRARIES})
|
|
|
|
ENDIF()
|
|
|
|
IF(IRRXML_LIBRARY_RELEASE)
|
|
|
|
SET(ASSIMP_LIBRARIES ${ASSIMP_LIBRARIES} optimized ${IRRXML_LIBRARY_RELEASE})
|
|
|
|
ENDIF()
|
|
|
|
IF(IRRXML_LIBRARY_DEBUG)
|
|
|
|
SET(ASSIMP_LIBRARIES ${ASSIMP_LIBRARIES} debug ${IRRXML_LIBRARY_DEBUG})
|
2015-11-30 13:19:38 +00:00
|
|
|
ENDIF()
|
2017-10-03 12:33:25 +00:00
|
|
|
ENDIF()
|
2015-09-19 14:46:59 +00:00
|
|
|
|
2017-10-03 12:33:25 +00:00
|
|
|
IF (ASSIMP_FOUND)
|
|
|
|
IF (NOT ASSIMP_FIND_QUIETLY)
|
|
|
|
MESSAGE(STATUS "Found asset importer library: ${ASSIMP_LIBRARIES}")
|
|
|
|
ENDIF ()
|
|
|
|
ELSE (ASSIMP_FOUND)
|
|
|
|
IF (ASSIMP_FIND_REQUIRED)
|
2015-09-19 14:46:59 +00:00
|
|
|
MESSAGE(FATAL_ERROR "Could not find asset importer library")
|
2017-10-03 12:33:25 +00:00
|
|
|
ENDIF ()
|
|
|
|
ENDIF ()
|