|
|
@ -19,57 +19,57 @@ include(FindPkgMacros)
|
|
|
|
|
|
|
|
|
|
|
|
IF (WIN32) #Windows
|
|
|
|
IF (WIN32) #Windows
|
|
|
|
MESSAGE(STATUS "Looking for MyGUI")
|
|
|
|
MESSAGE(STATUS "Looking for MyGUI")
|
|
|
|
SET(MYGUISDK $ENV{MYGUI_HOME})
|
|
|
|
SET(MYGUISDK $ENV{MYGUI_HOME})
|
|
|
|
IF (MYGUISDK)
|
|
|
|
IF (MYGUISDK)
|
|
|
|
findpkg_begin ( "MYGUI" )
|
|
|
|
findpkg_begin ( "MYGUI" )
|
|
|
|
MESSAGE(STATUS "Using MyGUI in OGRE SDK")
|
|
|
|
MESSAGE(STATUS "Using MyGUI in OGRE SDK")
|
|
|
|
STRING(REGEX REPLACE "[\\]" "/" MYGUISDK "${MYGUISDK}" )
|
|
|
|
STRING(REGEX REPLACE "[\\]" "/" MYGUISDK "${MYGUISDK}" )
|
|
|
|
|
|
|
|
|
|
|
|
find_path ( MYGUI_INCLUDE_DIRS
|
|
|
|
find_path ( MYGUI_INCLUDE_DIRS
|
|
|
|
MyGUI.h
|
|
|
|
MyGUI.h
|
|
|
|
"${MYGUISDK}/MyGUIEngine/include"
|
|
|
|
"${MYGUISDK}/MyGUIEngine/include"
|
|
|
|
NO_DEFAULT_PATH )
|
|
|
|
NO_DEFAULT_PATH )
|
|
|
|
|
|
|
|
|
|
|
|
find_path ( MYGUI_PLATFORM_INCLUDE_DIRS
|
|
|
|
find_path ( MYGUI_PLATFORM_INCLUDE_DIRS
|
|
|
|
MyGUI_OgrePlatform.h
|
|
|
|
MyGUI_OgrePlatform.h
|
|
|
|
"${MYGUISDK}/Platforms/Ogre/OgrePlatform/include"
|
|
|
|
"${MYGUISDK}/Platforms/Ogre/OgrePlatform/include"
|
|
|
|
NO_DEFAULT_PATH )
|
|
|
|
NO_DEFAULT_PATH )
|
|
|
|
|
|
|
|
|
|
|
|
SET ( MYGUI_LIB_DIR ${MYGUISDK}/*/lib )
|
|
|
|
SET ( MYGUI_LIB_DIR ${MYGUISDK}/*/lib )
|
|
|
|
|
|
|
|
|
|
|
|
find_library ( MYGUI_LIBRARIES_REL NAMES
|
|
|
|
find_library ( MYGUI_LIBRARIES_REL NAMES
|
|
|
|
MyGUIEngine.lib
|
|
|
|
MyGUIEngine.lib
|
|
|
|
MyGUI.OgrePlatform.lib
|
|
|
|
MyGUI.OgrePlatform.lib
|
|
|
|
HINTS
|
|
|
|
HINTS
|
|
|
|
${MYGUI_LIB_DIR}
|
|
|
|
${MYGUI_LIB_DIR}
|
|
|
|
PATH_SUFFIXES "" release relwithdebinfo minsizerel )
|
|
|
|
PATH_SUFFIXES "" release relwithdebinfo minsizerel )
|
|
|
|
|
|
|
|
|
|
|
|
find_library ( MYGUI_LIBRARIES_DBG NAMES
|
|
|
|
find_library ( MYGUI_LIBRARIES_DBG NAMES
|
|
|
|
MyGUIEngine_d.lib
|
|
|
|
MyGUIEngine_d.lib
|
|
|
|
MyGUI.OgrePlatform_d.lib
|
|
|
|
MyGUI.OgrePlatform_d.lib
|
|
|
|
HINTS
|
|
|
|
HINTS
|
|
|
|
${MYGUI_LIB_DIR}
|
|
|
|
${MYGUI_LIB_DIR}
|
|
|
|
PATH_SUFFIXES "" debug )
|
|
|
|
PATH_SUFFIXES "" debug )
|
|
|
|
|
|
|
|
|
|
|
|
find_library ( MYGUI_PLATFORM_LIBRARIES_REL NAMES
|
|
|
|
find_library ( MYGUI_PLATFORM_LIBRARIES_REL NAMES
|
|
|
|
MyGUI.OgrePlatform.lib
|
|
|
|
MyGUI.OgrePlatform.lib
|
|
|
|
HINTS
|
|
|
|
HINTS
|
|
|
|
${MYGUI_LIB_DIR}
|
|
|
|
${MYGUI_LIB_DIR}
|
|
|
|
PATH_SUFFIXES "" release relwithdebinfo minsizerel )
|
|
|
|
PATH_SUFFIXES "" release relwithdebinfo minsizerel )
|
|
|
|
|
|
|
|
|
|
|
|
find_library ( MYGUI_PLATFORM_LIBRARIES_DBG NAMES
|
|
|
|
find_library ( MYGUI_PLATFORM_LIBRARIES_DBG NAMES
|
|
|
|
MyGUI.OgrePlatform_d.lib
|
|
|
|
MyGUI.OgrePlatform_d.lib
|
|
|
|
HINTS
|
|
|
|
HINTS
|
|
|
|
${MYGUI_LIB_DIR}
|
|
|
|
${MYGUI_LIB_DIR}
|
|
|
|
PATH_SUFFIXES "" debug )
|
|
|
|
PATH_SUFFIXES "" debug )
|
|
|
|
|
|
|
|
|
|
|
|
make_library_set ( MYGUI_LIBRARIES )
|
|
|
|
make_library_set ( MYGUI_LIBRARIES )
|
|
|
|
make_library_set ( MYGUI_PLATFORM_LIBRARIES )
|
|
|
|
make_library_set ( MYGUI_PLATFORM_LIBRARIES )
|
|
|
|
|
|
|
|
|
|
|
|
MESSAGE ("${MYGUI_LIBRARIES}")
|
|
|
|
MESSAGE ("${MYGUI_LIBRARIES}")
|
|
|
|
MESSAGE ("${MYGUI_PLATFORM_LIBRARIES}")
|
|
|
|
MESSAGE ("${MYGUI_PLATFORM_LIBRARIES}")
|
|
|
|
|
|
|
|
|
|
|
|
findpkg_finish ( "MYGUI" )
|
|
|
|
findpkg_finish ( "MYGUI" )
|
|
|
|
|
|
|
|
|
|
|
|
ENDIF (MYGUISDK)
|
|
|
|
ENDIF (MYGUISDK)
|
|
|
|
IF (OGRESOURCE)
|
|
|
|
IF (OGRESOURCE)
|
|
|
@ -87,9 +87,11 @@ ELSE (WIN32) #Unix
|
|
|
|
SET(MYGUI_INCLUDE_DIRS ${MYGUI_INCLUDE_DIRS})
|
|
|
|
SET(MYGUI_INCLUDE_DIRS ${MYGUI_INCLUDE_DIRS})
|
|
|
|
SET(MYGUI_LIB_DIR ${MYGUI_LIBDIR})
|
|
|
|
SET(MYGUI_LIB_DIR ${MYGUI_LIBDIR})
|
|
|
|
SET(MYGUI_LIBRARIES ${MYGUI_LIBRARIES} CACHE STRING "")
|
|
|
|
SET(MYGUI_LIBRARIES ${MYGUI_LIBRARIES} CACHE STRING "")
|
|
|
|
|
|
|
|
SET(MYGUI_PLATFORM_LIBRARIES "MyGUI.OgrePlatform")
|
|
|
|
ELSE (MYGUI_INCLUDE_DIRS)
|
|
|
|
ELSE (MYGUI_INCLUDE_DIRS)
|
|
|
|
FIND_PATH(MYGUI_INCLUDE_DIRS MyGUI.h PATHS /usr/local/include /usr/include PATH_SUFFIXES MyGUI MYGUI)
|
|
|
|
FIND_PATH(MYGUI_INCLUDE_DIRS MyGUI.h PATHS /usr/local/include /usr/include PATH_SUFFIXES MyGUI MYGUI)
|
|
|
|
FIND_LIBRARY(MYGUI_LIBRARIES mygui PATHS /usr/lib /usr/local/lib)
|
|
|
|
FIND_LIBRARY(MYGUI_LIBRARIES mygui PATHS /usr/lib /usr/local/lib)
|
|
|
|
|
|
|
|
SET(MYGUI_PLATFORM_LIBRARIES "MyGUI.OgrePlatform")
|
|
|
|
SET(MYGUI_LIB_DIR ${MYGUI_LIBRARIES})
|
|
|
|
SET(MYGUI_LIB_DIR ${MYGUI_LIBRARIES})
|
|
|
|
STRING(REGEX REPLACE "(.*)/.*" "\\1" MYGUI_LIB_DIR "${MYGUI_LIB_DIR}")
|
|
|
|
STRING(REGEX REPLACE "(.*)/.*" "\\1" MYGUI_LIB_DIR "${MYGUI_LIB_DIR}")
|
|
|
|
STRING(REGEX REPLACE ".*/" "" MYGUI_LIBRARIES "${MYGUI_LIBRARIES}")
|
|
|
|
STRING(REGEX REPLACE ".*/" "" MYGUI_LIBRARIES "${MYGUI_LIBRARIES}")
|
|
|
@ -111,7 +113,7 @@ IF (MYGUI_INCLUDE_DIRS AND MYGUI_LIBRARIES)
|
|
|
|
ENDIF (MYGUI_INCLUDE_DIRS AND MYGUI_LIBRARIES)
|
|
|
|
ENDIF (MYGUI_INCLUDE_DIRS AND MYGUI_LIBRARIES)
|
|
|
|
|
|
|
|
|
|
|
|
IF (MYGUI_FOUND)
|
|
|
|
IF (MYGUI_FOUND)
|
|
|
|
MARK_AS_ADVANCED(MYGUI_LIB_DIR)
|
|
|
|
MARK_AS_ADVANCED(MYGUI_LIB_DIR)
|
|
|
|
IF (NOT MYGUI_FIND_QUIETLY)
|
|
|
|
IF (NOT MYGUI_FIND_QUIETLY)
|
|
|
|
MESSAGE(STATUS " libraries : ${MYGUI_LIBRARIES} from ${MYGUI_LIB_DIR}")
|
|
|
|
MESSAGE(STATUS " libraries : ${MYGUI_LIBRARIES} from ${MYGUI_LIB_DIR}")
|
|
|
|
MESSAGE(STATUS " includes : ${MYGUI_INCLUDE_DIRS}")
|
|
|
|
MESSAGE(STATUS " includes : ${MYGUI_INCLUDE_DIRS}")
|
|
|
@ -122,4 +124,4 @@ ELSE (MYGUI_FOUND)
|
|
|
|
ENDIF (MYGUI_FIND_REQUIRED)
|
|
|
|
ENDIF (MYGUI_FIND_REQUIRED)
|
|
|
|
ENDIF (MYGUI_FOUND)
|
|
|
|
ENDIF (MYGUI_FOUND)
|
|
|
|
|
|
|
|
|
|
|
|
CMAKE_POLICY(POP)
|
|
|
|
CMAKE_POLICY(POP)
|
|
|
|