mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 21:33:57 -07:00
Beginning CMake configuration for ZT
Only tested on Windows so far
This commit is contained in:
parent
af5d3a7f0b
commit
0b3b5f6174
111 changed files with 19586 additions and 36 deletions
39
ext/librabbitmq/cmake/FindPOPT.cmake
Normal file
39
ext/librabbitmq/cmake/FindPOPT.cmake
Normal file
|
@ -0,0 +1,39 @@
|
|||
# - Try to find the popt options processing library
|
||||
# The module will set the following variables
|
||||
#
|
||||
# POPT_FOUND - System has popt
|
||||
# POPT_INCLUDE_DIR - The popt include directory
|
||||
# POPT_LIBRARY - The libraries needed to use popt
|
||||
|
||||
# use pkg-config to get the directories and then use these values
|
||||
# in the FIND_PATH() and FIND_LIBRARY() calls
|
||||
|
||||
find_package(PkgConfig QUIET)
|
||||
if (PKG_CONFIG_FOUND)
|
||||
pkg_search_module(PC_POPT QUIET popt)
|
||||
endif ()
|
||||
|
||||
# Find the include directories
|
||||
FIND_PATH(POPT_INCLUDE_DIR
|
||||
NAMES popt.h
|
||||
HINTS
|
||||
${PC_POPT_INCLUDEDIR}
|
||||
${PC_POPT_INCLUDE_DIRS}
|
||||
DOC "Path containing the popt.h include file"
|
||||
)
|
||||
|
||||
FIND_LIBRARY(POPT_LIBRARY
|
||||
NAMES popt
|
||||
HINTS
|
||||
${PC_POPT_LIBRARYDIR}
|
||||
${PC_POPT_LIBRARY_DIRS}
|
||||
DOC "popt library path"
|
||||
)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(POPT
|
||||
REQUIRED_VARS POPT_INCLUDE_DIR POPT_LIBRARY
|
||||
VERSION_VAR PC_POPT_VERSION)
|
||||
|
||||
MARK_AS_ADVANCED(POPT_INCLUDE_DIR POPT_LIBRARY)
|
Loading…
Add table
Add a link
Reference in a new issue