2015-06-06 18:53:22 +00:00
|
|
|
# - Find MINIUPNPC
|
|
|
|
|
2016-08-19 09:16:28 +00:00
|
|
|
if(MINIUPNPC_INCLUDE_DIR AND MINIUPNPC_LIBRARY)
|
2015-06-06 18:53:22 +00:00
|
|
|
set(MINIUPNPC_FOUND TRUE)
|
|
|
|
|
|
|
|
else()
|
2015-11-11 19:45:37 +00:00
|
|
|
find_path(MINIUPNPC_INCLUDE_DIR miniupnpc/miniupnpc.h
|
|
|
|
/usr/include
|
|
|
|
/usr/local/include
|
|
|
|
/opt/local/include
|
|
|
|
$ENV{SystemDrive}
|
|
|
|
${PROJECT_SOURCE_DIR}/../..
|
2015-06-06 18:53:22 +00:00
|
|
|
)
|
2016-08-19 09:16:28 +00:00
|
|
|
|
|
|
|
find_library(MINIUPNPC_LIBRARY miniupnpc)
|
|
|
|
|
|
|
|
if(MINIUPNPC_INCLUDE_DIR AND MINIUPNPC_LIBRARY)
|
2015-06-06 18:53:22 +00:00
|
|
|
set(MINIUPNPC_FOUND TRUE)
|
|
|
|
message(STATUS "Found MiniUPnP headers: ${MINIUPNPC_INCLUDE_DIR}")
|
2016-08-19 09:16:28 +00:00
|
|
|
message(STATUS "Found MiniUPnP library: ${MINIUPNPC_LIBRARY}")
|
2015-06-06 18:53:22 +00:00
|
|
|
else()
|
|
|
|
set(MINIUPNPC_FOUND FALSE)
|
|
|
|
message(STATUS "MiniUPnP not found.")
|
|
|
|
endif()
|
|
|
|
|
2016-08-19 09:16:28 +00:00
|
|
|
mark_as_advanced(MINIUPNPC_INCLUDE_DIR MINIUPNPC_LIBRARY)
|
2018-01-06 03:48:51 +00:00
|
|
|
|
2015-06-06 18:53:22 +00:00
|
|
|
endif()
|