2014-05-11 11:56:38 +00:00
|
|
|
FIND_PATH(
|
2015-05-19 03:44:54 +00:00
|
|
|
assimp_INCLUDE_DIRS
|
|
|
|
NAMES postprocess.h scene.h version.h config.h cimport.h
|
|
|
|
PATHS /usr/local/include/
|
2014-05-11 11:56:38 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
FIND_LIBRARY(
|
2015-05-19 03:44:54 +00:00
|
|
|
assimp_LIBRARIES
|
|
|
|
NAMES assimp
|
|
|
|
PATHS /usr/local/lib/
|
2014-05-11 11:56:38 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
IF (assimp_INCLUDE_DIRS AND assimp_LIBRARIES)
|
2015-05-19 03:44:54 +00:00
|
|
|
SET(assimp_FOUND TRUE)
|
2014-05-11 11:56:38 +00:00
|
|
|
ENDIF (assimp_INCLUDE_DIRS AND assimp_LIBRARIES)
|
|
|
|
|
|
|
|
IF (assimp_FOUND)
|
2015-05-19 03:44:54 +00:00
|
|
|
IF (NOT assimp_FIND_QUIETLY)
|
|
|
|
MESSAGE(STATUS "Found asset importer library: ${assimp_LIBRARIES}")
|
|
|
|
ENDIF (NOT assimp_FIND_QUIETLY)
|
2014-05-11 11:56:38 +00:00
|
|
|
ELSE (assimp_FOUND)
|
2015-05-19 03:44:54 +00:00
|
|
|
IF (assimp_FIND_REQUIRED)
|
|
|
|
MESSAGE(FATAL_ERROR "Could not find asset importer library")
|
|
|
|
ENDIF (assimp_FIND_REQUIRED)
|
2014-05-11 11:56:38 +00:00
|
|
|
ENDIF (assimp_FOUND)
|