forked from AnimalLogic/AL_USDMaya
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request AnimalLogic#8 from autodesk-forks/dalgos/Integrate…
…UFEInAL_USDmaya MAYA-xxxx Integrating UFE into AL_USDMaya plugin
- Loading branch information
Showing
7 changed files
with
417 additions
and
177 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
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,95 @@ | ||
# - UFE finder module | ||
# This module searches for a valid UFE installation. | ||
# It searches for UFE's libraries and include header files | ||
# | ||
# Variables that will be defined: | ||
# UFE_FOUND Defined if a UFE installation has been detected | ||
# UFE_LIBRARY Path to UFE library | ||
# UFE_INCLUDE_DIR Path to the UFE's include directories | ||
# | ||
|
||
if(APPLE) | ||
find_path(UFE_LIBRARY_DIR | ||
libufe_${UFE_MAJOR_VERSION}_${UFE_MINOR_VERSION}.dylib | ||
HINTS | ||
"${MAYA_DEVKIT_LOCATION}" | ||
"${MAYA_LOCATION}" | ||
"$ENV{MAYA_LOCATION}" | ||
"${MAYA_BASE_DIR}" | ||
PATH_SUFFIXES | ||
devkit/ufe/lib | ||
lib/ | ||
DOC | ||
"UFE's libraries path" | ||
) | ||
elseif(UNIX) | ||
find_path(UFE_LIBRARY_DIR | ||
libufe_${UFE_MAJOR_VERSION}_${UFE_MINOR_VERSION}.so | ||
HINTS | ||
"${MAYA_DEVKIT_LOCATION}" | ||
"${MAYA_LOCATION}" | ||
"$ENV{MAYA_LOCATION}" | ||
"${MAYA_BASE_DIR}" | ||
PATH_SUFFIXES | ||
devkit/ufe/lib | ||
lib/ | ||
DOC | ||
"UFE's libraries path" | ||
) | ||
elseif(WIN32) | ||
find_path(UFE_LIBRARY_DIR | ||
ufe_${UFE_MAJOR_VERSION}_${UFE_MINOR_VERSION}.lib | ||
HINTS | ||
"${MAYA_DEVKIT_LOCATION}" | ||
"${MAYA_LOCATION}" | ||
"$ENV{MAYA_LOCATION}" | ||
"${MAYA_BASE_DIR}" | ||
PATH_SUFFIXES | ||
devkit/ufe/lib | ||
lib/ | ||
DOC | ||
"UFE's libraries path" | ||
) | ||
endif() | ||
|
||
find_path(UFE_INCLUDE_DIR | ||
ufe/versionInfo.h | ||
HINTS | ||
"${MAYA_DEVKIT_LOCATION}" | ||
"${MAYA_LOCATION}" | ||
"$ENV{MAYA_LOCATION}" | ||
"${MAYA_BASE_DIR}" | ||
PATH_SUFFIXES | ||
devkit/ufe/include | ||
DOC | ||
"UFE's headers path" | ||
) | ||
|
||
message(STATUS "UFE Library directory: ${UFE_LIBRARY_DIR}") | ||
|
||
|
||
foreach(UFE_LIB | ||
ufe_${UFE_MAJOR_VERSION}_${UFE_MINOR_VERSION}) | ||
|
||
find_library(UFE_LIBRARY | ||
NAMES | ||
${UFE_LIB} | ||
PATHS | ||
${UFE_LIBRARY_DIR} | ||
NO_DEFAULT_PATH | ||
) | ||
|
||
if (UFE_LIBRARY) | ||
list(APPEND UFE_LIBRARIES ${UFE_LIBRARY}) | ||
endif() | ||
endforeach(UFE_LIB) | ||
|
||
# handle the QUIETLY and REQUIRED arguments and set UFE_FOUND to TRUE if | ||
# all listed variables are TRUE | ||
include(FindPackageHandleStandardArgs) | ||
|
||
find_package_handle_standard_args(UFE | ||
REQUIRED_VARS | ||
UFE_INCLUDE_DIR | ||
UFE_LIBRARIES | ||
) |
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
Oops, something went wrong.