From 8e04218c95ebc97f8bb8e0ca4155a5a3c99b51f7 Mon Sep 17 00:00:00 2001 From: Mikhail Titov Date: Sun, 13 Dec 2015 15:35:56 -0600 Subject: [PATCH] Install optional miniupnpc.dll if exist --- build/CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/build/CMakeLists.txt b/build/CMakeLists.txt index 452019e9..748d8264 100644 --- a/build/CMakeLists.txt +++ b/build/CMakeLists.txt @@ -417,6 +417,22 @@ cpack_add_component(Headers DESCRIPTION "I2pd header files for development" INSTALL_TYPES full dev3rd ) +install(FILES ${MINIUPNPC_INCLUDE_DIR}/miniupnpc/miniupnpc.dll + DESTINATION bin + COMPONENT MiniUPnPc + OPTIONAL + ) +install(FILES ${MINIUPNPC_INCLUDE_DIR}/miniupnpc/LICENSE + DESTINATION . + COMPONENT MiniUPnPc + RENAME LICENSE_MINIUPNPC + OPTIONAL + ) +cpack_add_component(MiniUPnPc + INSTALL_TYPES full recommended + # DOWNLOADED + # ARCHIVE_FILE miniupnpc-win32.zip + ) cpack_add_install_type(recommended DISPLAY_NAME Recommended) cpack_add_install_type(dev3rd DISPLAY_NAME "Third party development") cpack_add_install_type(full DISPLAY_NAME Full)