|
|
@ -82,20 +82,37 @@ findpkg_finish ( "MYGUI" )
|
|
|
|
ELSE (WIN32) #Unix
|
|
|
|
ELSE (WIN32) #Unix
|
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.7 FATAL_ERROR)
|
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.7 FATAL_ERROR)
|
|
|
|
FIND_PACKAGE(PkgConfig)
|
|
|
|
FIND_PACKAGE(PkgConfig)
|
|
|
|
PKG_SEARCH_MODULE(MYGUI MYGUI MyGUI)
|
|
|
|
IF(MYGUI_STATIC)
|
|
|
|
IF (MYGUI_INCLUDE_DIRS)
|
|
|
|
PKG_SEARCH_MODULE(MYGUI MYGUIStatic MyGUIStatic)
|
|
|
|
SET(MYGUI_INCLUDE_DIRS ${MYGUI_INCLUDE_DIRS})
|
|
|
|
IF (MYGUI_INCLUDE_DIRS)
|
|
|
|
SET(MYGUI_LIB_DIR ${MYGUI_LIBDIR})
|
|
|
|
SET(MYGUI_INCLUDE_DIRS ${MYGUI_INCLUDE_DIRS})
|
|
|
|
SET(MYGUI_LIBRARIES ${MYGUI_LIBRARIES} CACHE STRING "")
|
|
|
|
SET(MYGUI_LIB_DIR ${MYGUI_LIBDIR})
|
|
|
|
SET(MYGUI_PLATFORM_LIBRARIES "MyGUI.OgrePlatform")
|
|
|
|
SET(MYGUI_LIBRARIES ${MYGUI_LIBRARIES} CACHE STRING "")
|
|
|
|
ELSE (MYGUI_INCLUDE_DIRS)
|
|
|
|
SET(MYGUI_PLATFORM_LIBRARIES "MyGUI.OgrePlatform")
|
|
|
|
FIND_PATH(MYGUI_INCLUDE_DIRS MyGUI.h PATHS /usr/local/include /usr/include PATH_SUFFIXES MyGUI MYGUI)
|
|
|
|
ELSE (MYGUI_INCLUDE_DIRS)
|
|
|
|
FIND_LIBRARY(MYGUI_LIBRARIES mygui PATHS /usr/lib /usr/local/lib)
|
|
|
|
FIND_PATH(MYGUI_INCLUDE_DIRS MyGUI.h PATHS /usr/local/include /usr/include PATH_SUFFIXES MyGUI MYGUI)
|
|
|
|
SET(MYGUI_PLATFORM_LIBRARIES "MyGUI.OgrePlatform")
|
|
|
|
FIND_LIBRARY(MYGUI_LIBRARIES myguistatic PATHS /usr/lib /usr/local/lib)
|
|
|
|
SET(MYGUI_LIB_DIR ${MYGUI_LIBRARIES})
|
|
|
|
SET(MYGUI_PLATFORM_LIBRARIES "MyGUI.OgrePlatform")
|
|
|
|
STRING(REGEX REPLACE "(.*)/.*" "\\1" MYGUI_LIB_DIR "${MYGUI_LIB_DIR}")
|
|
|
|
SET(MYGUI_LIB_DIR ${MYGUI_LIBRARIES})
|
|
|
|
STRING(REGEX REPLACE ".*/" "" MYGUI_LIBRARIES "${MYGUI_LIBRARIES}")
|
|
|
|
STRING(REGEX REPLACE "(.*)/.*" "\\1" MYGUI_LIB_DIR "${MYGUI_LIB_DIR}")
|
|
|
|
ENDIF (MYGUI_INCLUDE_DIRS)
|
|
|
|
STRING(REGEX REPLACE ".*/" "" MYGUI_LIBRARIES "${MYGUI_LIBRARIES}")
|
|
|
|
|
|
|
|
ENDIF (MYGUI_INCLUDE_DIRS)
|
|
|
|
|
|
|
|
ELSE(MYGUI_STATIC)
|
|
|
|
|
|
|
|
PKG_SEARCH_MODULE(MYGUI MYGUI MyGUI)
|
|
|
|
|
|
|
|
IF (MYGUI_INCLUDE_DIRS)
|
|
|
|
|
|
|
|
SET(MYGUI_INCLUDE_DIRS ${MYGUI_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
SET(MYGUI_LIB_DIR ${MYGUI_LIBDIR})
|
|
|
|
|
|
|
|
SET(MYGUI_LIBRARIES ${MYGUI_LIBRARIES} CACHE STRING "")
|
|
|
|
|
|
|
|
SET(MYGUI_PLATFORM_LIBRARIES "MyGUI.OgrePlatform")
|
|
|
|
|
|
|
|
ELSE (MYGUI_INCLUDE_DIRS)
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
SET(MYGUI_PLATFORM_LIBRARIES "MyGUI.OgrePlatform")
|
|
|
|
|
|
|
|
SET(MYGUI_LIB_DIR ${MYGUI_LIBRARIES})
|
|
|
|
|
|
|
|
STRING(REGEX REPLACE "(.*)/.*" "\\1" MYGUI_LIB_DIR "${MYGUI_LIB_DIR}")
|
|
|
|
|
|
|
|
STRING(REGEX REPLACE ".*/" "" MYGUI_LIBRARIES "${MYGUI_LIBRARIES}")
|
|
|
|
|
|
|
|
ENDIF (MYGUI_INCLUDE_DIRS)
|
|
|
|
|
|
|
|
ENDIF(MYGUI_STATIC)
|
|
|
|
ENDIF (WIN32)
|
|
|
|
ENDIF (WIN32)
|
|
|
|
|
|
|
|
|
|
|
|
#Do some preparation
|
|
|
|
#Do some preparation
|
|
|
|