diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c63439cb..9649b3a6f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -190,6 +190,11 @@ if(BUILD_INSTALLER) add_subdirectory(deploy) endif() +install( + FILES ${PROJECT_SOURCE_DIR}/LICENSE + DESTINATION ${CMAKE_INSTALL_LICENSE_DIR} +) + install( FILES ${PROJECT_SOURCE_DIR}/LICENSES/LicenseRef-OpenSSL-Exception.txt DESTINATION ${CMAKE_INSTALL_LICENSE_DIR} diff --git a/docs/LICENSE b/LICENSE similarity index 100% rename from docs/LICENSE rename to LICENSE diff --git a/deploy/CMakeLists.txt b/deploy/CMakeLists.txt index 282f292ca..c7b0ca781 100644 --- a/deploy/CMakeLists.txt +++ b/deploy/CMakeLists.txt @@ -1,8 +1,9 @@ # SPDX-FileCopyrightText: (C) 2024 Chris Rizzitello # SPDX-License-Identifier: MIT +# Copy License with txt ext for picky package creation tools file(COPY_FILE - ${CMAKE_SOURCE_DIR}/docs/LICENSE + ${CMAKE_SOURCE_DIR}/LICENSE ${CMAKE_CURRENT_BINARY_DIR}/LICENSE.txt ONLY_IF_DIFFERENT ) diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index d59a5f934..fb32d2ba7 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -28,11 +28,8 @@ endif() # Show our documents in the IDE add_custom_target(docs SOURCES - LICENSE Readme.md Security.md ) install(FILES Security.md Readme.md DESTINATION ${CMAKE_INSTALL_DOCDIR}) - -install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_LICENSE_DIR})