-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
1,319 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,8 @@ | |
*.dot | ||
*.gsm | ||
|
||
*.opensdf | ||
|
||
build | ||
lib | ||
doc/html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
SET(ASSIMP_INCLUDE_SEARCH_DIRS | ||
${GLOBAL_EXT_DIR}/inc/assimp | ||
/opt/assimp/current | ||
) | ||
|
||
SET(ASSIMP_LIBRARY_SEARCH_DIRS | ||
${GLOBAL_EXT_DIR}/lib | ||
/opt/assimp/current/assimp-build | ||
) | ||
|
||
message("-- checking for ASSIMP") | ||
|
||
IF (NOT ASSIMP_INCLUDE_DIRS) | ||
|
||
SET(_ASSIMP_FOUND_INC_DIRS "") | ||
|
||
FOREACH(_SEARCH_DIR ${ASSIMP_INCLUDE_SEARCH_DIRS}) | ||
FIND_PATH(_CUR_SEARCH | ||
NAMES assimp/assimp.h | ||
PATHS ${_SEARCH_DIR} | ||
NO_DEFAULT_PATH) | ||
IF (_CUR_SEARCH) | ||
LIST(APPEND _ASSIMP_FOUND_INC_DIRS ${_CUR_SEARCH}) | ||
ENDIF(_CUR_SEARCH) | ||
SET(_CUR_SEARCH _CUR_SEARCH-NOTFOUND CACHE INTERNAL "internal use") | ||
ENDFOREACH(_SEARCH_DIR ${ASSIMP_INCLUDE_SEARCH_DIRS}) | ||
|
||
IF (NOT _ASSIMP_FOUND_INC_DIRS) | ||
MESSAGE(FATAL_ERROR "find_assimp.cmake: unable to find assimp headers") | ||
ENDIF (NOT _ASSIMP_FOUND_INC_DIRS) | ||
|
||
FOREACH(_INC_DIR ${_ASSIMP_FOUND_INC_DIRS}) | ||
LIST(APPEND ASSIMP_INCLUDE_DIRS ${_INC_DIR}) | ||
ENDFOREACH(_INC_DIR ${_BOOST_FOUND_INC_DIRS}) | ||
|
||
ENDIF(NOT ASSIMP_INCLUDE_DIRS) | ||
|
||
|
||
IF(UNIX) | ||
SET(ASSIMP_LIB_FILENAME "libassimp.so") | ||
ELSEIF(WIN32) | ||
SET(ASSIMP_LIB_FILENAME "assimp.lib") | ||
ENDIF(UNIX) | ||
|
||
|
||
IF ( ASSIMP_INCLUDE_DIRS | ||
AND NOT ASSIMP_LIBRARIES) | ||
|
||
SET(_ASSIMP_FOUND_LIB_DIR "") | ||
SET(_ASSIMP_POSTFIX "") | ||
|
||
FOREACH(_SEARCH_DIR ${ASSIMP_LIBRARY_SEARCH_DIRS}) | ||
FIND_PATH(_CUR_SEARCH | ||
NAMES ${ASSIMP_LIB_FILENAME} | ||
PATHS ${_SEARCH_DIR} | ||
PATH_SUFFIXES debug release | ||
NO_DEFAULT_PATH) | ||
IF (_CUR_SEARCH) | ||
LIST(APPEND _ASSIMP_FOUND_LIB_DIR ${_SEARCH_DIR}) | ||
ENDIF(_CUR_SEARCH) | ||
SET(_CUR_SEARCH _CUR_SEARCH-NOTFOUND CACHE INTERNAL "internal use") | ||
ENDFOREACH(_SEARCH_DIR ${ASSIMP_LIBRARY_SEARCH_DIRS}) | ||
|
||
IF (NOT _ASSIMP_FOUND_LIB_DIR) | ||
MESSAGE(FATAL_ERROR "find_assimp.cmake: unable to find assimp libraries") | ||
ELSE (NOT _ASSIMP_FOUND_LIB_DIR) | ||
SET(ASSIMP_LIBRARY_DIRS ${_ASSIMP_FOUND_LIB_DIR} CACHE STRING "The assimp library directory") | ||
message("-- found matching version") | ||
ENDIF (NOT _ASSIMP_FOUND_LIB_DIR) | ||
|
||
FOREACH(_LIB_DIR ${_ASSIMP_FOUND_LIB_DIR}) | ||
LIST(APPEND ASSIMP_LIBRARIES ${ASSIMP_LIB_FILENAME}) | ||
ENDFOREACH(_LIB_DIR ${_ASSIMP_FOUND_INC_DIRS}) | ||
|
||
|
||
ENDIF( ASSIMP_INCLUDE_DIRS | ||
AND NOT ASSIMP_LIBRARIES) | ||
|
||
|
||
|
Oops, something went wrong.