Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graph/cmake/Findassimp.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)