Commit c211b544 authored by Jan Möbius's avatar Jan Möbius
Browse files

Simple untested finder for assimp



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15823 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 1e49d10d
# - Try to find ASSIMP
# Once done this will define
#
# ASSIMP_FOUND - system has ASSIMP
# ASSIMP_INCLUDE_DIR - the ASSIMP include directory
# ASSIMP_LIBRARY - Link these to use ASSIMP
#
IF (ASSIMP_INCLUDE_DIRS)
# Already in cache, be silent
SET(ASSIMP_FIND_QUIETLY TRUE)
ENDIF (ASSIMP_INCLUDE_DIRS)
# Find the headers
FIND_PATH( ASSIMP_INCLUDE_DIR assimp/scene.h
PATHS /usr/include )
if( WIN32 )
FIND_LIBRARY( ASSIMP_LIBRARY
NAMES libassimp.lib
PATHS "C:/libs/assimp/lib" )
GET_FILENAME_COMPONENT( ASSIMP_LIBRARY_DIR ${ASSIMP_LIBRARY} PATH )
else (WIN32)
FIND_LIBRARY( ASSIMP_LIBRARY
NAMES assimp
PATHS /usr/lib /usr/local/lib )
endif( WIN32)
IF (ASSIMP_INCLUDE_DIR AND ASSIMP_LIBRARY)
SET(ASSIMP_FOUND TRUE)
ELSE (ASSIMP_INCLUDE_DIR AND ASSIMP_LIBRARY)
SET( ASSIMP_FOUND FALSE )
ENDIF (ASSIMP_INCLUDE_DIR AND ASSIMP_LIBRARY)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment