forked from assimp/assimp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: add asset importer lib cmake find macro.
- Loading branch information
1 parent
f6925db
commit 22d026a
Showing
1 changed file
with
25 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FIND_PATH( | ||
assimp_INCLUDE_DIRS | ||
NAMES postprocess.h scene.h version.h config.h cimport.h | ||
PATHS /usr/local/include/btr-headers | ||
) | ||
|
||
FIND_LIBRARY( | ||
assimp_LIBRARIES | ||
NAMES assimp | ||
PATHS /usr/local/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 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) |