summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMarcus Tillmanns <marcus.tillmanns@qt.io>2023-03-11 12:17:27 +0100
committerMarcus Tillmanns <marcus.tillmanns@qt.io>2023-03-12 09:24:15 +0000
commit67f7968e9b0fe9997110d41363b8c6ef60737c5b (patch)
treebe975b444b5118aa98fc074ff563e8d31810254f /cmake
parent887f6afd258233c476bea1a34834a67e12a864c0 (diff)
downloadqt-creator-67f7968e9b0fe9997110d41363b8c6ef60737c5b.tar.gz
CMake: Add feature info for executables
Change-Id: I4cfa2168b6e03730c02ca089f3c6f86fc07a6a01 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtCreatorAPI.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/QtCreatorAPI.cmake b/cmake/QtCreatorAPI.cmake
index fb843f2928..0f512b9ef8 100644
--- a/cmake/QtCreatorAPI.cmake
+++ b/cmake/QtCreatorAPI.cmake
@@ -628,6 +628,7 @@ function(add_qtc_executable name)
update_cached_list(__QTC_EXECUTABLES "${name}")
+ condition_info(_extra_text _arg_CONDITION)
if (NOT _arg_CONDITION)
set(_arg_CONDITION ON)
endif()
@@ -648,6 +649,9 @@ function(add_qtc_executable name)
else()
set(_executable_enabled OFF)
endif()
+ if (NOT _arg_INTERNAL_ONLY)
+ add_feature_info("Executable ${name}" _executable_enabled "${_extra_text}")
+ endif()
if (NOT _executable_enabled)
return()
endif()