mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 17:29:00 +08:00
f6df03b4a8
* [assimp] Fix -config.cmake files * [assimp] Fix linux build and provide backwards-compatible alias * [assimp][irrxml][kubazip][poly2tri][polyclipping] Extract vendored dependencies * [assimp] Use find_dependency(); add ZLIB dependency * [polyclipping] Do not suffix upstream binaries Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: Stefano Sinigardi <stesinigardi@hotmail.com>
46 lines
1.1 KiB
CMake
46 lines
1.1 KiB
CMake
# Distributed under the OSI-approved BSD 3-Clause License.
|
|
|
|
#.rst:
|
|
# FindCLIPPER
|
|
# --------
|
|
#
|
|
# Result Variables
|
|
# ^^^^^^^^^^^^^^^^
|
|
#
|
|
# This module will set the following variables in your project::
|
|
#
|
|
# ``CLIPPER_FOUND``
|
|
# True if CLIPPER found on the local system
|
|
#
|
|
# ``CLIPPER_INCLUDE_DIRS``
|
|
# Location of CLIPPER header files.
|
|
#
|
|
# ``CLIPPER_LIBRARIES``
|
|
# The clipper libraries.
|
|
#
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
include(SelectLibraryConfigurations)
|
|
|
|
if(NOT CLIPPER_INCLUDE_DIR)
|
|
find_path(CLIPPER_INCLUDE_DIR clipper.hpp
|
|
PATH_SUFFIXES polyclipping)
|
|
endif()
|
|
|
|
if(NOT CLIPPER_LIBRARY)
|
|
find_library(CLIPPER_LIBRARY_RELEASE NAMES polyclipping PATHS "${CMAKE_CURRENT_LIST_DIR}/../../lib" NO_DEFAULT_PATH)
|
|
find_library(CLIPPER_LIBRARY_DEBUG NAMES polyclipping PATHS "${CMAKE_CURRENT_LIST_DIR}/../../debug/lib" NO_DEFAULT_PATH)
|
|
select_library_configurations(CLIPPER)
|
|
endif()
|
|
|
|
mark_as_advanced(CLIPPER_LIBRARY CLIPPER_INCLUDE_DIR)
|
|
|
|
find_package_handle_standard_args(CLIPPER
|
|
REQUIRED_VARS CLIPPER_LIBRARY CLIPPER_INCLUDE_DIR
|
|
)
|
|
|
|
if(CLIPPER_FOUND)
|
|
set(CLIPPER_LIBRARIES ${CLIPPER_LIBRARY})
|
|
set(CLIPPER_INCLUDE_DIRS ${CLIPPER_INCLUDE_DIR})
|
|
endif()
|