mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-05 23:09:04 +00:00
Changed: Determinates 3dsmax SDK base directory
This commit is contained in:
parent
1ace2090fb
commit
38f79138b9
1 changed files with 34 additions and 28 deletions
|
@ -1,46 +1,52 @@
|
||||||
# - Find DirectInput
|
# - Find DirectInput
|
||||||
# Find the DirectSound includes and libraries
|
# Find the DirectSound includes and libraries
|
||||||
#
|
#
|
||||||
|
# MAXSDK_DIR - 3DSMAX SDK root directory
|
||||||
# MAXSDK_INCLUDE_DIR - where to find baseinterface.h
|
# MAXSDK_INCLUDE_DIR - where to find baseinterface.h
|
||||||
# MAXSDK_LIBRARIES - List of libraries when using 3DSMAX.
|
# MAXSDK_LIBRARIES - List of libraries when using 3DSMAX.
|
||||||
# MAXSDK_FOUND - True if MAX SDK found.
|
# MAXSDK_FOUND - True if MAX SDK found.
|
||||||
|
|
||||||
if(MAXSDK_INCLUDE_DIR)
|
if(MAXSDK_INCLUDE_DIR)
|
||||||
# Already in cache, be silent
|
# Already in cache, be silent
|
||||||
set(MAXSDK_FIND_QUIETLY TRUE)
|
SET(MAXSDK_FIND_QUIETLY TRUE)
|
||||||
endif(MAXSDK_INCLUDE_DIR)
|
endif(MAXSDK_INCLUDE_DIR)
|
||||||
|
|
||||||
find_path(MAXSDK_INCLUDE_DIR max.h
|
FIND_PATH(MAXSDK_DIR
|
||||||
|
"include/maxversion.h"
|
||||||
|
HINTS
|
||||||
|
"$ENV{MAXSDK_DIR}"
|
||||||
PATHS
|
PATHS
|
||||||
"$ENV{ADSK_3DSMAX_SDK_2012}/maxsdk/include"
|
"$ENV{ADSK_3DSMAX_SDK_2012}/maxsdk"
|
||||||
"$ENV{3DSMAX_2011_SDK_PATH}/maxsdk/include"
|
"$ENV{3DSMAX_2011_SDK_PATH}/maxsdk"
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2010 SDK/maxsdk/include"
|
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2010 SDK/maxsdk"
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2009 SDK/maxsdk/include"
|
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2009 SDK/maxsdk"
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2008 SDK/maxsdk/include"
|
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2008 SDK/maxsdk"
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 9 SDK/maxsdk/include"
|
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 9 SDK/maxsdk"
|
||||||
)
|
|
||||||
|
|
||||||
find_path(MAXSDK_CS_INCLUDE_DIR bipexp.h
|
|
||||||
PATHS
|
|
||||||
"$ENV{ADSK_3DSMAX_SDK_2012}/maxsdk/include/CS"
|
|
||||||
"$ENV{3DSMAX_2011_SDK_PATH}/maxsdk/include/CS"
|
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2010 SDK/maxsdk/include/CS"
|
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2009 SDK/maxsdk/include/CS"
|
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2008 SDK/maxsdk/include/CS"
|
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 9 SDK/maxsdk/include/CS"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
FIND_PATH(MAXSDK_INCLUDE_DIR
|
||||||
|
max.h
|
||||||
|
HINTS
|
||||||
|
${MAXSDK_DIR}/include
|
||||||
|
)
|
||||||
|
|
||||||
|
FIND_PATH(MAXSDK_CS_INCLUDE_DIR bipexp.h
|
||||||
|
HINTS
|
||||||
|
${MAXSDK_DIR}/include/CS
|
||||||
|
)
|
||||||
|
|
||||||
|
IF(TARGET_X64)
|
||||||
|
SET(MAXSDK_LIBRARY_DIRS ${MAXSDK_DIR}/x64/lib)
|
||||||
|
ELSE(TARGET_X64)
|
||||||
|
SET(MAXSDK_LIBRARY_DIRS ${MAXSDK_DIR}/lib)
|
||||||
|
ENDIF(TARGET_X64)
|
||||||
|
|
||||||
MACRO(FIND_3DS_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
MACRO(FIND_3DS_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
||||||
FIND_LIBRARY(${MYLIBRARY}
|
FIND_LIBRARY(${MYLIBRARY}
|
||||||
NAMES ${MYLIBRARYNAME}
|
NAMES ${MYLIBRARYNAME}
|
||||||
PATHS
|
HINTS
|
||||||
"$ENV{ADSK_3DSMAX_SDK_2012}/maxsdk/lib"
|
${MAXSDK_LIBRARY_DIRS}
|
||||||
"$ENV{3DSMAX_2011_SDK_PATH}/maxsdk/lib"
|
)
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2010 SDK/maxsdk/lib"
|
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2009 SDK/maxsdk/lib"
|
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2008 SDK/maxsdk/lib"
|
|
||||||
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 9 SDK/maxsdk/lib"
|
|
||||||
)
|
|
||||||
ENDMACRO(FIND_3DS_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
ENDMACRO(FIND_3DS_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
||||||
|
|
||||||
FIND_3DS_LIBRARY(MAXSDK_CORE_LIBRARY core)
|
FIND_3DS_LIBRARY(MAXSDK_CORE_LIBRARY core)
|
||||||
|
|
Loading…
Reference in a new issue