From 82b117ee7f7a471f1f833ffb5b5b980cd44a97f0 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 21 Apr 2019 13:17:50 -0700 Subject: [PATCH] CMake: Add listdevices Matches the Makefile --- miniupnpc/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/miniupnpc/CMakeLists.txt b/miniupnpc/CMakeLists.txt index b2821da..7ee16b8 100644 --- a/miniupnpc/CMakeLists.txt +++ b/miniupnpc/CMakeLists.txt @@ -67,6 +67,7 @@ set (MINIUPNPC_SOURCES connecthostport.c portlistingparse.c receivedata.c + listdevices.c connecthostport.h igd_desc_parse.h minisoap.h @@ -148,6 +149,10 @@ if (UPNPC_BUILD_SHARED) target_link_libraries (upnpc-shared PRIVATE libminiupnpc-shared) target_include_directories(upnpc-shared PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) endif () + + add_executable (listdevices listdevices.c) + target_link_libraries (listdevices PRIVATE libminiupnpc-shared) + target_include_directories(listdevices PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) endif () if (UPNPC_BUILD_TESTS)