2015-06-06 21:53:22 +03:00
|
|
|
# - Find MINIUPNPC
|
|
|
|
|
|
|
|
if(MINIUPNPC_INCLUDE_DIR)
|
|
|
|
set(MINIUPNPC_FOUND TRUE)
|
|
|
|
|
|
|
|
else()
|
2015-11-11 22:45:37 +03: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 21:53:22 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
if(MINIUPNPC_INCLUDE_DIR)
|
|
|
|
set(MINIUPNPC_FOUND TRUE)
|
|
|
|
message(STATUS "Found MiniUPnP headers: ${MINIUPNPC_INCLUDE_DIR}")
|
|
|
|
else()
|
|
|
|
set(MINIUPNPC_FOUND FALSE)
|
|
|
|
message(STATUS "MiniUPnP not found.")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
mark_as_advanced(MINIUPNPC_INCLUDE_DIR)
|
|
|
|
|
|
|
|
endif()
|