# Find the ASSIMP includes and library

IF (ASSIMP_INCLUDE_DIR)
  # Already in cache, be silent
  SET(ASSIMP_FIND_QUIETLY TRUE)
ENDIF (ASSIMP_INCLUDE_DIR)

FIND_PATH(ASSIMP_INCLUDE_DIR ColladaMetaData.h PATH_SUFFIXES include/assimp include)

SET(ASSIMP_NAMES ASSIMP assimp Assimp assimp-vc142-mtd)
FIND_LIBRARY(ASSIMP_LIBRARY NAMES ${ASSIMP_NAMES} )
MARK_AS_ADVANCED(ASSIMP_LIBRARY ASSIMP_INCLUDE_DIR )

# Per-recommendation
SET(ASSIMP_INCLUDE_DIRS "${ASSIMP_INCLUDE_DIR}")
SET(ASSIMP_LIBRARIES    "${ASSIMP_LIBRARY}")

# handle the QUIETLY and REQUIRED arguments and set ASSIMP_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASSIMP DEFAULT_MSG ASSIMP_LIBRARIES ASSIMP_INCLUDE_DIRS)

