diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2019-09-20 14:32:38 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2019-09-20 14:32:10 +0000 |
commit | 2e27d1967a9a4146697028ed8feed14d0df2a46a (patch) | |
tree | 6850dc6569fe084504d27a8bba6f431a427e3fda | |
parent | 09392f99b62dd6c7d4d3b848b18719af60c315c1 (diff) | |
download | qtserialport-2e27d1967a9a4146697028ed8feed14d0df2a46a.tar.gz |
Re-generate CMakeLists.txt after recent pro2cmake.py fixes
The top-level requires() is now translated automatically
Change-Id: I2f0640e1e1c8fd4641169f66400488498c144436
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r-- | .prev_CMakeLists.txt | 40 | ||||
-rw-r--r-- | CMakeLists.txt | 27 |
2 files changed, 63 insertions, 4 deletions
diff --git a/.prev_CMakeLists.txt b/.prev_CMakeLists.txt new file mode 100644 index 0000000..929506f --- /dev/null +++ b/.prev_CMakeLists.txt @@ -0,0 +1,40 @@ +# Generated from qtserialport.pro. + +cmake_minimum_required(VERSION 3.15.0) + +project(QtSerialPort + VERSION 6.0.0 + DESCRIPTION "Qt SerialPort Libraries" + HOMEPAGE_URL "https://qt.io/" + LANGUAGES CXX C +) + +find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core SET_ME_TO_SOMETHING_USEFUL) +find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS SET_ME_TO_SOMETHING_USEFUL) + +if(INTEGRITY) + message(NOTICE "Skipping the build as the condition \"NOT INTEGRITY\" is not met.") + return() +endif() + +if(VXWORKS) + message(NOTICE "Skipping the build as the condition \"NOT VXWORKS\" is not met.") + return() +endif() + +if(WINRT) + message(NOTICE "Skipping the build as the condition \"NOT WINRT\" is not met.") + return() +endif() + +if(APPLE_UIKIT) + message(NOTICE "Skipping the build as the condition \"NOT APPLE_UIKIT\" is not met.") + return() +endif() + +if(EMSCRIPTEN) + message(NOTICE "Skipping the build as the condition \"NOT EMSCRIPTEN\" is not met.") + return() +endif() + +qt_build_repo() diff --git a/CMakeLists.txt b/CMakeLists.txt index 02f9e73..7edaa58 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,10 +12,29 @@ project(QtSerialPort find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core) # special case find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Xml) # special case -# special case begin -if (INTEGRITY OR WINRT OR APPLE_UIKIT OR VXWORKS OR WASM) - return() +if(INTEGRITY) + message(NOTICE "Skipping the build as the condition \"NOT INTEGRITY\" is not met.") + return() +endif() + +if(VXWORKS) + message(NOTICE "Skipping the build as the condition \"NOT VXWORKS\" is not met.") + return() +endif() + +if(WINRT) + message(NOTICE "Skipping the build as the condition \"NOT WINRT\" is not met.") + return() +endif() + +if(APPLE_UIKIT) + message(NOTICE "Skipping the build as the condition \"NOT APPLE_UIKIT\" is not met.") + return() +endif() + +if(EMSCRIPTEN) + message(NOTICE "Skipping the build as the condition \"NOT EMSCRIPTEN\" is not met.") + return() endif() -# special case end qt_build_repo() |