mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-08 01:10:40 +00:00
29 lines
724 B
CMake
29 lines
724 B
CMake
# - Find MINIUPNPC
|
|
|
|
if(MINIUPNPC_INCLUDE_DIR AND MINIUPNPC_LIBRARY)
|
|
set(MINIUPNPC_FOUND TRUE)
|
|
|
|
else()
|
|
find_path(MINIUPNPC_INCLUDE_DIR miniupnpc/miniupnpc.h
|
|
/usr/include
|
|
/usr/local/include
|
|
/opt/local/include
|
|
$ENV{SystemDrive}
|
|
${PROJECT_SOURCE_DIR}/../..
|
|
)
|
|
|
|
find_library(MINIUPNPC_LIBRARY miniupnpc)
|
|
|
|
if(MINIUPNPC_INCLUDE_DIR AND MINIUPNPC_LIBRARY)
|
|
set(MINIUPNPC_FOUND TRUE)
|
|
message(STATUS "Found MiniUPnP headers: ${MINIUPNPC_INCLUDE_DIR}")
|
|
message(STATUS "Found MiniUPnP library: ${MINIUPNPC_LIBRARY}")
|
|
else()
|
|
set(MINIUPNPC_FOUND FALSE)
|
|
message(STATUS "MiniUPnP not found.")
|
|
endif()
|
|
|
|
mark_as_advanced(MINIUPNPC_INCLUDE_DIR MINIUPNPC_LIBRARY)
|
|
|
|
endif()
|