From 2b1623fbd6524b49b868c1c8307fc7db8abd1c9e Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Sat, 20 May 2023 15:32:48 +0800 Subject: [PATCH] cmake: hide detailed info if the user don't want it Signed-off-by: Yuhang Zhao <2546789017@qq.com> --- examples/dialog/CMakeLists.txt | 2 +- examples/mainwindow/CMakeLists.txt | 2 +- examples/openglwidget/CMakeLists.txt | 2 +- examples/quick/CMakeLists.txt | 2 +- examples/widget/CMakeLists.txt | 2 +- src/core/CMakeLists.txt | 4 +++- src/quick/CMakeLists.txt | 4 +++- src/widgets/CMakeLists.txt | 4 +++- 8 files changed, 14 insertions(+), 8 deletions(-) diff --git a/examples/dialog/CMakeLists.txt b/examples/dialog/CMakeLists.txt index e41afe3..3a1191b 100644 --- a/examples/dialog/CMakeLists.txt +++ b/examples/dialog/CMakeLists.txt @@ -107,4 +107,4 @@ if(FRAMELESSHELPER_EXAMPLES_DEPLOYQT) deploy_qt_runtime(TARGET ${DEMO_NAME} ${__extra_flags}) endif() -dump_target_info(TARGETS ${DEMO_NAME}) +#dump_target_info(TARGETS ${DEMO_NAME}) diff --git a/examples/mainwindow/CMakeLists.txt b/examples/mainwindow/CMakeLists.txt index 7ea8b6a..1969cba 100644 --- a/examples/mainwindow/CMakeLists.txt +++ b/examples/mainwindow/CMakeLists.txt @@ -112,4 +112,4 @@ if(FRAMELESSHELPER_EXAMPLES_DEPLOYQT) deploy_qt_runtime(TARGET ${DEMO_NAME} ${__extra_flags}) endif() -dump_target_info(TARGETS ${DEMO_NAME}) +#dump_target_info(TARGETS ${DEMO_NAME}) diff --git a/examples/openglwidget/CMakeLists.txt b/examples/openglwidget/CMakeLists.txt index 98f9459..fcaf4cf 100644 --- a/examples/openglwidget/CMakeLists.txt +++ b/examples/openglwidget/CMakeLists.txt @@ -122,4 +122,4 @@ if(FRAMELESSHELPER_EXAMPLES_DEPLOYQT) deploy_qt_runtime(TARGET ${DEMO_NAME} ${__extra_flags}) endif() -dump_target_info(TARGETS ${DEMO_NAME}) +#dump_target_info(TARGETS ${DEMO_NAME}) diff --git a/examples/quick/CMakeLists.txt b/examples/quick/CMakeLists.txt index e82e596..4221c17 100644 --- a/examples/quick/CMakeLists.txt +++ b/examples/quick/CMakeLists.txt @@ -143,4 +143,4 @@ if(FRAMELESSHELPER_EXAMPLES_DEPLOYQT) ) endif() -dump_target_info(TARGETS ${DEMO_NAME}) +#dump_target_info(TARGETS ${DEMO_NAME}) diff --git a/examples/widget/CMakeLists.txt b/examples/widget/CMakeLists.txt index 4422e69..674c0f6 100644 --- a/examples/widget/CMakeLists.txt +++ b/examples/widget/CMakeLists.txt @@ -107,4 +107,4 @@ if(FRAMELESSHELPER_EXAMPLES_DEPLOYQT) deploy_qt_runtime(TARGET ${DEMO_NAME} ${__extra_flags}) endif() -dump_target_info(TARGETS ${DEMO_NAME}) +#dump_target_info(TARGETS ${DEMO_NAME}) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index cb67cf5..13d2499 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -379,4 +379,6 @@ if(NOT FRAMELESSHELPER_NO_INSTALL) ) endif() -dump_target_info(TARGETS ${SUB_PROJ_NAME}) +if(NOT FRAMELESSHELPER_NO_SUMMARY) + dump_target_info(TARGETS ${SUB_PROJ_NAME}) +endif() diff --git a/src/quick/CMakeLists.txt b/src/quick/CMakeLists.txt index e219545..7240b4a 100644 --- a/src/quick/CMakeLists.txt +++ b/src/quick/CMakeLists.txt @@ -359,4 +359,6 @@ if(NOT FRAMELESSHELPER_NO_INSTALL) ) endif() -dump_target_info(TARGETS ${SUB_PROJ_NAME}) +if(NOT FRAMELESSHELPER_NO_SUMMARY) + dump_target_info(TARGETS ${SUB_PROJ_NAME}) +endif() diff --git a/src/widgets/CMakeLists.txt b/src/widgets/CMakeLists.txt index 524808c..af6809a 100644 --- a/src/widgets/CMakeLists.txt +++ b/src/widgets/CMakeLists.txt @@ -250,4 +250,6 @@ if(NOT FRAMELESSHELPER_NO_INSTALL) ) endif() -dump_target_info(TARGETS ${SUB_PROJ_NAME}) +if(NOT FRAMELESSHELPER_NO_SUMMARY) + dump_target_info(TARGETS ${SUB_PROJ_NAME}) +endif()