diff options
author | Konstantin Podsvirov <konstantin@podsvirov.pro> | 2015-07-03 11:50:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-07-07 13:16:44 (GMT) |
commit | ecca26855a786bb126341e7fba59557325e54f7b (patch) | |
tree | 39d819a5a96c7d0d130c5a5024a2b16cfd2186b6 /CMakeCPack.cmake | |
parent | c14f20f7dd827bd1b9164b3641db697776de85bf (diff) | |
download | CMake-ecca26855a786bb126341e7fba59557325e54f7b.zip CMake-ecca26855a786bb126341e7fba59557325e54f7b.tar.gz CMake-ecca26855a786bb126341e7fba59557325e54f7b.tar.bz2 |
CMake: optional show LGPLv2.1 license when install cmake-gui component
In IFW installer if cmake-gui component selected and
CMake_GUI_DISTRIBUTE_WITH_Qt_LGPL enabled license will be
showed.
Diffstat (limited to 'CMakeCPack.cmake')
-rw-r--r-- | CMakeCPack.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeCPack.cmake b/CMakeCPack.cmake index d7c6024..54816ec 100644 --- a/CMakeCPack.cmake +++ b/CMakeCPack.cmake @@ -82,6 +82,8 @@ if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake") endif() if(BUILD_QtDialog) list(APPEND _CPACK_IFW_COMPONENTS_ALL cmake-gui) + set(_CPACK_IFW_COMPONENT_CMAKE-GUI_LICENSES "set(CPACK_IFW_COMPONENT_CMAKE-GUI_LICENSES + \"LGPLv2.1\" \"${CMake_SOURCE_DIR}/Licenses/LGPLv2.1.txt\")") endif() if(SPHINX_MAN) list(APPEND _CPACK_IFW_COMPONENTS_ALL sphinx-man) @@ -100,6 +102,11 @@ if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake") set(CPACK_COMPONENTS_ALL \"${_CPACK_IFW_COMPONENTS_ALL}\") set(CPACK_COMPONENTS_GROUPING IGNORE) ") + else() + if(BUILD_QtDialog AND CMake_GUI_DISTRIBUTE_WITH_Qt_LGPL) + set(_CPACK_IFW_ADDITIONAL_LICENSES + "\"LGPLv2.1\" \"${CMake_SOURCE_DIR}/Licenses/LGPLv2.1.txt\"") + endif() endif() # Components scripts configuration |