- use DEAL_II_FIND_PATH to set up include directory
- don't use tabs :-)
SET_IF_EMPTY(ASSIMP_DIR "$ENV{ASSIMP_DIR}")
DEAL_II_FIND_LIBRARY(ASSIMP_LIB NAMES assimp
- HINTS ${ASSIMP_DIR}
- PATH_SUFFIXES lib${LIB_SUFFIX} lib64 lib
+ HINTS ${ASSIMP_DIR}
+ PATH_SUFFIXES lib${LIB_SUFFIX} lib64 lib
)
-SET(ASSIMP_INC "${ASSIMP_DIR}/include")
+DEAL_II_FIND_PATH(ASSIMP_INC assimp/defs.h
+ HINTS ${ASSIMP_DIR}
+ )
DEAL_II_PACKAGE_HANDLE(ASSIMP
- LIBRARIES REQUIRED
- ASSIMP_LIB
- INCLUDE_DIRS
- REQUIRED ASSIMP_INC
- USER_INCLUDE_DIRS
- REQUIRED ASSIMP_INC
- CLEAR
- ASSIMP_LIB
- ASSIMP_INC
+ LIBRARIES REQUIRED ASSIMP_LIB
+ INCLUDE_DIRS REQUIRED ASSIMP_INC
+ USER_INCLUDE_DIRS REQUIRED ASSIMP_INC
+ CLEAR ASSIMP_LIB ASSIMP_INC
)
-
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams