|
|
@ -356,7 +356,7 @@ set(OGRE_COMPONENT_SEARCH_PATH_DBG
|
|
|
|
|
|
|
|
|
|
|
|
macro(ogre_find_component COMPONENT HEADER)
|
|
|
|
macro(ogre_find_component COMPONENT HEADER)
|
|
|
|
findpkg_begin(OGRE_${COMPONENT})
|
|
|
|
findpkg_begin(OGRE_${COMPONENT})
|
|
|
|
find_path(OGRE_${COMPONENT}_INCLUDE_DIR NAMES ${HEADER} HINTS ${OGRE_INCLUDE_DIRS} ${OGRE_PREFIX_SOURCE} PATH_SUFFIXES ${COMPONENT} OGRE/${COMPONENT} Components/${COMPONENT}/include)
|
|
|
|
find_path(OGRE_${COMPONENT}_INCLUDE_DIR NAMES ${HEADER} HINTS ${OGRE_INCLUDE_DIRS} ${OGRE_INCLUDE_DIR}/Ogre${COMPONENT} ${OGRE_PREFIX_SOURCE} PATH_SUFFIXES ${COMPONENT} OGRE/${COMPONENT} Components/${COMPONENT}/include)
|
|
|
|
set(OGRE_${COMPONENT}_LIBRARY_NAMES "Ogre${COMPONENT}${OGRE_LIB_SUFFIX}")
|
|
|
|
set(OGRE_${COMPONENT}_LIBRARY_NAMES "Ogre${COMPONENT}${OGRE_LIB_SUFFIX}")
|
|
|
|
get_debug_names(OGRE_${COMPONENT}_LIBRARY_NAMES)
|
|
|
|
get_debug_names(OGRE_${COMPONENT}_LIBRARY_NAMES)
|
|
|
|
find_library(OGRE_${COMPONENT}_LIBRARY_REL NAMES ${OGRE_${COMPONENT}_LIBRARY_NAMES} HINTS ${OGRE_LIBRARY_DIR_REL} PATH_SUFFIXES "" "release" "relwithdebinfo" "minsizerel")
|
|
|
|
find_library(OGRE_${COMPONENT}_LIBRARY_REL NAMES ${OGRE_${COMPONENT}_LIBRARY_NAMES} HINTS ${OGRE_LIBRARY_DIR_REL} PATH_SUFFIXES "" "release" "relwithdebinfo" "minsizerel")
|
|
|
@ -364,6 +364,9 @@ macro(ogre_find_component COMPONENT HEADER)
|
|
|
|
make_library_set(OGRE_${COMPONENT}_LIBRARY)
|
|
|
|
make_library_set(OGRE_${COMPONENT}_LIBRARY)
|
|
|
|
findpkg_finish(OGRE_${COMPONENT})
|
|
|
|
findpkg_finish(OGRE_${COMPONENT})
|
|
|
|
if (OGRE_${COMPONENT}_FOUND)
|
|
|
|
if (OGRE_${COMPONENT}_FOUND)
|
|
|
|
|
|
|
|
if (APPLE)
|
|
|
|
|
|
|
|
include_directories("${OGRE_INCLUDE_DIR}/${COMPONENT}")
|
|
|
|
|
|
|
|
endif()
|
|
|
|
# find binaries
|
|
|
|
# find binaries
|
|
|
|
if (NOT OGRE_STATIC)
|
|
|
|
if (NOT OGRE_STATIC)
|
|
|
|
if (WIN32)
|
|
|
|
if (WIN32)
|
|
|
|