#------------------------------------------------------------------- # This file is part of the CMake build system for OGRE # (Object-oriented Graphics Rendering Engine) # For the latest info, see http://www.ogre3d.org/ # # The contents of this file are placed in the public domain. Feel # free to make use of it in any way you like. #------------------------------------------------------------------- # - Try to find 3DRUDDER # Once done, this will define # # RUDDER3D_FOUND - system has 3DRUDDER # RUDDER3D_INCLUDE_DIRS - the 3DRUDDER include directories # RUDDER3D_LIBRARIES - link these to use 3DRUDDER include(FindPkgMacros) findpkg_begin(RUDDER3D) # Get path, convert backslashes as ${ENV_${var}} getenv_path(RUDDER3D_HOME) # construct search paths set(RUDDER3D_PREFIX_PATH ${RUDDER3D_HOME} $ENV{SCOL_DEPENDENCIES_PATH}/3drudder ) create_search_paths(RUDDER3D) # redo search if prefix path changed clear_if_changed(RUDDER3D_PREFIX_PATH RUDDER3D_LIBRARY_FWK RUDDER3D_LIBRARY_REL RUDDER3D_LIBRARY_DBG RUDDER3D_INCLUDE_DIR ) set(RUDDER3D_LIBRARY_NAMES 3DRudderSDK) get_debug_names(RUDDER3D_LIBRARY_NAMES) findpkg_framework(RUDDER3D) set (RUDDER3D_PLARFORM "Win32") if(WIN32 AND (WIN64 OR (CMAKE_SIZEOF_VOID_P EQUAL 8))) set (RUDDER3D_PLARFORM "x64") endif() #message(alert ${RUDDER3D_LIB_SEARCH_PATH}) find_path(RUDDER3D_INCLUDE_DIR NAMES 3dRudderSDK.h HINTS ${RUDDER3D_INC_SEARCH_PATH}) find_library(RUDDER3D_LIBRARY_REL NAMES ${RUDDER3D_LIBRARY_NAMES} HINTS ${RUDDER3D_LIB_SEARCH_PATH} PATH_SUFFIXES "" ${RUDDER3D_PLARFORM}/Static Release RelWithDebInfo MinSizeRel ${ANDROID_ABI}) find_library(RUDDER3D_LIBRARY_DBG NAMES ${RUDDER3D_LIBRARY_NAMES_DBG} HINTS ${RUDDER3D_LIB_SEARCH_PATH} PATH_SUFFIXES "" ${RUDDER3D_PLARFORM}/Static Debug ${ANDROID_ABI}) make_library_set(RUDDER3D_LIBRARY) findpkg_finish(RUDDER3D)