27 lines
622 B
CMake
27 lines
622 B
CMake
set(ASSIMP_ARCHITECTURE "64")
|
|
|
|
find_path(assimp_INCLUDE_DIRS
|
|
NAMES
|
|
postprocess.h scene.h version.h config.h cimport.h
|
|
PATHS
|
|
/usr/include/assimp)
|
|
|
|
find_library(assimp_LIBRARIES
|
|
NAMES
|
|
assimp
|
|
PATHS
|
|
/usr/lib)
|
|
|
|
if(assimp_INCLUDE_DIRS AND assimp_LIBRARIES)
|
|
SET(assimp_FOUND TRUE)
|
|
endif(assimp_INCLUDE_DIRS AND assimp_LIBRARIES)
|
|
|
|
if(assimp_FOUND)
|
|
add_library(assimp::assimp UNKNOWN IMPORTED)
|
|
|
|
set_target_properties(assimp::assimp PROPERTIES
|
|
IMPORTED_LOCATION
|
|
${assimp_LIBRARIES}
|
|
INTERFACE_INCLUDE_DIRECTORIES
|
|
${assimp_INCLUDE_DIRS})
|
|
endif(assimp_FOUND)
|