CMake: Add listdevices

Matches the Makefile
This commit is contained in:
Rosen Penev 2019-04-21 13:17:50 -07:00 committed by Thomas Bernard
parent aea0a6093d
commit 82b117ee7f
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C
1 changed files with 5 additions and 0 deletions

View File

@ -67,6 +67,7 @@ set (MINIUPNPC_SOURCES
connecthostport.c connecthostport.c
portlistingparse.c portlistingparse.c
receivedata.c receivedata.c
listdevices.c
connecthostport.h connecthostport.h
igd_desc_parse.h igd_desc_parse.h
minisoap.h minisoap.h
@ -148,6 +149,10 @@ if (UPNPC_BUILD_SHARED)
target_link_libraries (upnpc-shared PRIVATE libminiupnpc-shared) target_link_libraries (upnpc-shared PRIVATE libminiupnpc-shared)
target_include_directories(upnpc-shared PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) target_include_directories(upnpc-shared PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
endif () endif ()
add_executable (listdevices listdevices.c)
target_link_libraries (listdevices PRIVATE libminiupnpc-shared)
target_include_directories(listdevices PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
endif () endif ()
if (UPNPC_BUILD_TESTS) if (UPNPC_BUILD_TESTS)