mirror of
https://git.freebsd.org/ports.git
synced 2025-05-06 19:06:44 -04:00
29 lines
975 B
CMake
29 lines
975 B
CMake
# Copyright (c) 2020 Ultimaker B.V.
|
|
# pynest2d is released under the terms of the LGPLv3 or higher.
|
|
|
|
# This script finds libnest2d on your computer.
|
|
#
|
|
# The output of this script is the following variables:
|
|
# - LIBNEST2D_INCLUDE_DIR: The include directory for libnest2d.
|
|
|
|
find_package(PkgConfig) # To easily find files on your computer.
|
|
|
|
# First try with packageconfig to get a beginning of an idea where to search.
|
|
pkg_check_modules(PC_LIBNEST2D QUIET libnest2d)
|
|
|
|
find_path(LIBNEST2D_INCLUDE_DIRS NAMES libnest2d/libnest2d.hpp HINTS
|
|
${PC_LIBNEST2D_INCLUDE_DIRS}
|
|
${PC_LIBNEST2D_INCLUDE_DIRS}/libnest2d
|
|
${CMAKE_PREFIX_PATH}/include/
|
|
${CMAKE_PREFIX_PATH}/include/libnest2d
|
|
/opt/local/include/
|
|
/opt/local/include/libnest2d/
|
|
/usr/local/include/
|
|
/usr/local/include/libnest2d/
|
|
/usr/include
|
|
/usr/include/libnest2d/
|
|
)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(LIBNEST2D DEFAULT_MSG
|
|
LIBNEST2D_INCLUDE_DIRS)
|