#------------------------------------------------------------------- # This file is part of the CMake build system for Scol # # The contents of this file are placed in the public domain. Feel # free to make use of it in any way you like. #------------------------------------------------------------------- # Locate Xavy's HYDRAX Ogre plugin # This module defines # HYDRAX_FOUND - True when the HYDRAX include directory is found. # HYDRAX_INCLUDE_DIRS - the HYDRAX include files. # HYDRAX_LIBRARIES - the HYDRAX library files. # # HYDRAX_ROOT is an environment variable that would be set for windows users. # # Created by Jean-François VERDON. This was influenced by the FindBoost.cmake module. include(FindPkgMacros) findpkg_begin(HYDRAX) # Get path, convert backslashes as ${ENV_${var}} getenv_path(HYDRAX_ROOT) # construct search paths set(HYDRAX_PREFIX_PATH ${ENV_HYDRAX_HOME} ) create_search_paths(HYDRAX) # redo search if prefix path changed clear_if_changed(HYDRAX_PREFIX_PATH HYDRAX_LIBRARY_FWK HYDRAX_LIBRARY_REL HYDRAX_LIBRARY_DBG HYDRAX_INCLUDE_DIR ) set(HYDRAX_LIBRARY_NAMES hydrax hydraxStatic) get_debug_names(HYDRAX_LIBRARY_NAMES) use_pkgconfig(HYDRAX_PKGC zzip-HYDRAX-config) findpkg_framework(HYDRAX) find_path(HYDRAX_INCLUDE_DIR NAMES Hydrax.h HINTS ${HYDRAX_INC_SEARCH_PATH} ${HYDRAX_PKGC_INCLUDE_DIRS}) find_library(HYDRAX_LIBRARY_REL NAMES ${HYDRAX_LIBRARY_NAMES} HINTS ${HYDRAX_LIB_SEARCH_PATH} ${HYDRAX_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" Release RelWithDebInfo MinSizeRel ${ANDROID_ABI}) find_library(HYDRAX_LIBRARY_DBG NAMES ${HYDRAX_LIBRARY_NAMES_DBG} HINTS ${HYDRAX_LIB_SEARCH_PATH} ${HYDRAX_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" Debug ${ANDROID_ABI}) make_library_set(HYDRAX_LIBRARY) findpkg_finish(HYDRAX)