diff --git a/CMakeLists.txt b/CMakeLists.txt index e3f34581..6e1f73de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,7 @@ cmake_minimum_required(VERSION 3.20) project(FramelessHelper - VERSION "2.4.0" + VERSION "2.4.2" DESCRIPTION "Cross-platform window customization framework for Qt Widgets and Qt Quick." HOMEPAGE_URL "https://github.com/wangwenx190/framelesshelper/" ) diff --git a/FramelessHelperConfig.cmake.in b/FramelessHelperConfig.cmake.in index 1d16c114..4d2b9a4f 100644 --- a/FramelessHelperConfig.cmake.in +++ b/FramelessHelperConfig.cmake.in @@ -28,7 +28,14 @@ set(_@PROJECT_NAME@_supported_components Core Widgets Quick) foreach(_comp ${@PROJECT_NAME@_FIND_COMPONENTS}) if(_comp IN_LIST _@PROJECT_NAME@_supported_components) - include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@${_comp}Targets.cmake") + set(__targets_file "${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@${_comp}Targets.cmake") + if(EXISTS "${__targets_file}") + include("${__targets_file}") + else() + set(@PROJECT_NAME@_FOUND FALSE) + set(@PROJECT_NAME@_NOT_FOUND_MESSAGE "Can't find necessary configuration file for @PROJECT_NAME@::${_comp}, please make sure this component is successfully built and installed.") + break() + endif() else() set(@PROJECT_NAME@_FOUND FALSE) set(@PROJECT_NAME@_NOT_FOUND_MESSAGE "Unknown component: @PROJECT_NAME@::${_comp}.") diff --git a/qmake/inc/core/framelesshelper.version b/qmake/inc/core/framelesshelper.version index 524312dc..0fe2a1a4 100644 --- a/qmake/inc/core/framelesshelper.version +++ b/qmake/inc/core/framelesshelper.version @@ -35,9 +35,9 @@ [[maybe_unused]] inline constexpr const int FRAMELESSHELPER_VERSION_MAJOR = 2; [[maybe_unused]] inline constexpr const int FRAMELESSHELPER_VERSION_MINOR = 4; -[[maybe_unused]] inline constexpr const int FRAMELESSHELPER_VERSION_PATCH = 0; +[[maybe_unused]] inline constexpr const int FRAMELESSHELPER_VERSION_PATCH = 2; //[[maybe_unused]] inline constexpr const int FRAMELESSHELPER_VERSION_TWEAK = 0; -[[maybe_unused]] inline constexpr const char FRAMELESSHELPER_VERSION_STR[] = "2.4.0"; +[[maybe_unused]] inline constexpr const char FRAMELESSHELPER_VERSION_STR[] = "2.4.2"; [[maybe_unused]] inline constexpr const char FRAMELESSHELPER_COMMIT_STR[] = "UNKNOWN"; [[maybe_unused]] inline constexpr const char FRAMELESSHELPER_COMPILE_DATETIME_STR[] = "UNKNOWN";