mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 18:35:32 +02:00
45 lines
No EOL
1.4 KiB
CMake
45 lines
No EOL
1.4 KiB
CMake
#
|
|
# FindFaceshift.cmake
|
|
#
|
|
# Try to find the Faceshift networking library
|
|
#
|
|
# You must provide a FACESHIFT_ROOT_DIR which contains lib and include directories
|
|
#
|
|
# Once done this will define
|
|
#
|
|
# FACESHIFT_FOUND - system found Faceshift
|
|
# FACESHIFT_INCLUDE_DIRS - the Faceshift include directory
|
|
# FACESHIFT_LIBRARIES - Link this to use Faceshift
|
|
#
|
|
# Created on 8/30/2013 by Andrzej Kapolka
|
|
# Copyright 2013 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
|
|
#
|
|
|
|
include("${MACRO_DIR}/HifiLibrarySearchHints.cmake")
|
|
hifi_library_search_hints("faceshift")
|
|
|
|
find_path(FACESHIFT_INCLUDE_DIRS fsbinarystream.h PATH_SUFFIXES include HINTS ${FACESHIFT_SEARCH_DIRS})
|
|
|
|
if (APPLE)
|
|
set(ARCH_DIR "MacOS")
|
|
elseif (UNIX)
|
|
set(ARCH_DIR "UNIX")
|
|
elseif (WIN32)
|
|
set(ARCH_DIR "Win32")
|
|
endif ()
|
|
|
|
find_library(FACESHIFT_LIBRARY_RELEASE NAME faceshift PATH_SUFFIXES lib/${ARCH_DIR} HINTS ${FACESHIFT_SEARCH_DIRS})
|
|
find_library(FACESHIFT_LIBRARY_DEBUG NAME faceshiftd PATH_SUFFIXES lib/${ARCH_DIR} HINTS ${FACESHIFT_SEARCH_DIRS})
|
|
|
|
include(SelectLibraryConfigurations)
|
|
select_library_configurations(FACESHIFT)
|
|
|
|
set(FACESHIFT_LIBRARIES ${FACESHIFT_LIBRARY})
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(FACESHIFT DEFAULT_MSG FACESHIFT_INCLUDE_DIRS FACESHIFT_LIBRARIES)
|
|
|
|
mark_as_advanced(FACESHIFT_INCLUDE_DIRS FACESHIFT_LIBRARIES FACESHIFT_SEARCH_DIRS) |