if(CMAKE_SIZEOF_VOID_P EQUAL 8)
	set(ASSIMP_ARCHITECTURE "64")
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
	set(ASSIMP_ARCHITECTURE "32")
endif(CMAKE_SIZEOF_VOID_P EQUAL 8)

message(STATUS "Finding assimp...")

find_path(
	assimp_INCLUDE_DIRS
	NAMES assimp/postprocess.h assimp/scene.h assimp/version.h assimp/config.h assimp/cimport.h
	PATHS /usr/local/include
	PATHS /usr/include/
)

find_library(
	assimp_LIBRARIES
	NAMES assimp
	PATHS /usr/local/lib/
	PATHS /usr/lib64/
	PATHS /usr/lib/
)

if (assimp_INCLUDE_DIRS AND assimp_LIBRARIES)
	SET(assimp_FOUND TRUE)
ENDIF (assimp_INCLUDE_DIRS AND assimp_LIBRARIES)

if (assimp_FOUND)
	if (NOT assimp_FIND_QUIETLY)
		message(STATUS "Found asset importer directory: ${assimp_INCLUDE_DIRS}")
		message(STATUS "Found asset importer library: ${assimp_LIBRARIES}")
	endif (NOT assimp_FIND_QUIETLY)
else (assimp_FOUND)
	if (assimp_FIND_REQUIRED)
		message(FATAL_ERROR "Could not find asset importer library")
	endif (assimp_FIND_REQUIRED)
endif (assimp_FOUND)
