mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
23 lines
626 B
CMake
23 lines
626 B
CMake
# Filename: FindAssimp.cmake
|
|
# Authors: CFSworks (9 Nov, 2018)
|
|
#
|
|
# Usage:
|
|
# find_package(Assimp [REQUIRED] [QUIET])
|
|
#
|
|
# Once done this will define:
|
|
# ASSIMP_FOUND - system has Assimp
|
|
# ASSIMP_INCLUDE_DIR - the path to the location of the assimp/ directory
|
|
# ASSIMP_LIBRARY - the library to link against for Assimp
|
|
#
|
|
|
|
find_path(ASSIMP_INCLUDE_DIR
|
|
NAMES "assimp/Importer.hpp")
|
|
|
|
find_library(ASSIMP_LIBRARY
|
|
NAMES "assimp")
|
|
|
|
mark_as_advanced(ASSIMP_INCLUDE_DIR ASSIMP_LIBRARY)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(Assimp DEFAULT_MSG ASSIMP_INCLUDE_DIR ASSIMP_LIBRARY)
|