diff options
author | Antonio Juarez <antonio.maria.juarez@live.com> | 2014-04-09 13:14:35 +0100 |
---|---|---|
committer | Antonio Juarez <antonio.maria.juarez@live.com> | 2014-04-09 13:14:35 +0100 |
commit | 9682a15400495ae490543e7e5af242ff5c4c9fa0 (patch) | |
tree | 63ba7287d8f679742a244413291d4334fc26b6e6 /external/CMakeLists.txt | |
parent | Improvements in JSON RPC (diff) | |
download | monero-9682a15400495ae490543e7e5af242ff5c4c9fa0.tar.xz |
Port mapping with UPnP
Diffstat (limited to 'external/CMakeLists.txt')
-rwxr-xr-x | external/CMakeLists.txt | 11 |
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() |