From 6f82de6f87497eb650474b333c8cb39cb279a9c1 Mon Sep 17 00:00:00 2001 From: VRonin Date: Mon, 18 Oct 2021 15:31:21 +0100 Subject: [PATCH] Minor fix of install sources --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fd550b2..9538784 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,13 +57,13 @@ if(BUILD_TESTING) endif() add_subdirectory(tests) endif() -install(FILES "${CMAKE_SOURCE_DIR}/LICENSE" DESTINATION licenses ) +install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE" DESTINATION licenses ) SET(CPACK_PACKAGE_HOMEPAGE_URL "https://github.com/VSRonin/QtModelUtilities") SET(CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR}) SET(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR}) SET(CPACK_PACKAGE_VERSION_PATCH ${VERSION_PATCH}) -SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md") -SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE") +SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md") +SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") SET(CPACK_PACKAGE_FILE_NAME "QtModelUtilities-${VERSION_SHORT}-${CMAKE_SYSTEM_NAME}-${CMAKE_CXX_COMPILER_ID}-Qt${QT_VERSION_MAJOR}-${modelutilities_PlatformDir}") include(CPack)