mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 01:03:38 +02:00
32 lines
No EOL
1.1 KiB
CMake
32 lines
No EOL
1.1 KiB
CMake
#
|
|
# FindQxmpp.cmake
|
|
#
|
|
# Try to find the qxmpp library
|
|
#
|
|
# You can provide a QXMPP_ROOT_DIR which contains lib and include directories
|
|
#
|
|
# Once done this will define
|
|
#
|
|
# QXMPP_FOUND - system found qxmpp
|
|
# QXMPP_INCLUDE_DIRS - the qxmpp include directory
|
|
# QXMPP_LIBRARY - Link this to use qxmpp
|
|
#
|
|
# Created on 3/10/2014 by Stephen Birarda
|
|
# Copyright 2014 High Fidelity, Inc.
|
|
#
|
|
# Distributed under the Apache License, Version 2.0.
|
|
# See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
#
|
|
|
|
set(QXMPP_SEARCH_DIRS "${QXMPP_ROOT_DIR}" "$ENV{HIFI_LIB_DIR}/qxmpp")
|
|
|
|
find_path(QXMPP_INCLUDE_DIR QXmppClient.h PATH_SUFFIXES include/qxmpp HINTS ${QXMPP_SEARCH_DIRS})
|
|
|
|
find_library(QXMPP_LIBRARY_RELEASE NAMES qxmpp PATH_SUFFIXES lib HINTS ${QXMPP_SEARCH_DIRS})
|
|
find_library(QXMPP_LIBRARY_DEBUG NAMES qxmpp_d PATH_SUFFIXES lib HINTS ${QXMPP_SEARCH_DIRS})
|
|
|
|
include(SelectLibraryConfigurations)
|
|
select_library_configurations(QXMPP)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(QXMPP DEFAULT_MSG QXMPP_INCLUDE_DIR QXMPP_LIBRARY) |