aboutsummaryrefslogtreecommitdiff
path: root/external/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xexternal/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt
new file mode 100755
index 000000000..0a7a5d1ae
--- /dev/null
+++ b/external/CMakeLists.txt
@@ -0,0 +1,11 @@
+set(UPNPC_BUILD_STATIC ON CACHE BOOL "Build static library")
+set(UPNPC_BUILD_SHARED OFF CACHE BOOL "Build shared library")
+set(UPNPC_BUILD_TESTS OFF CACHE BOOL "Build test executables")
+add_subdirectory(miniupnpc)
+
+set_property(TARGET upnpc-static PROPERTY FOLDER "external")
+if(MSVC)
+ set_property(TARGET upnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -wd4244 -wd4267")
+elseif(NOT MSVC)
+ set_property(TARGET upnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-undef -Wno-unused-result -Wno-unused-value")
+endif()