cmake-debug: 增加目标驱动内部信息调试打印

1. QSci 基本属性与可传染性编译时宏定义
2. Notepad-- 基本属性
This commit is contained in:
zinface 2023-04-06 16:13:22 +08:00
parent aba6da24dd
commit dffdfe82c9
3 changed files with 26 additions and 9 deletions

View File

@ -13,6 +13,7 @@ else()
include(cmake/SparkFindQt5Config.cmake)
endif(USE_QT6)
include(cmake/SparkMacrosExtendConfig.cmake)
include(cmake/SparkCMakeDebugConfig.cmake)
# ----------------- ----------------- #
@ -123,3 +124,7 @@ if(USE_QT6)
message(NOTICE "[${QT56_PASS}] Qt5/Qt6 兼容性检查文件当前检查通过。")
endif(NOT QT56_PASS)
endif(USE_QT6)
# 使 cmake-debug
spark_generator_cmake_debug(cmake-debug)

View File

@ -59,12 +59,13 @@ target_compile_definitions(${PROJECT_NAME}
NO_PLUGIN #
)
#
add_custom_target(targetdebug
COMMAND
${CMAKE_COMMAND} -E echo
">>>>> Notepad-- COMPILE_DEFINITIONS: $<TARGET_PROPERTY:Notepad--,COMPILE_DEFINITIONS>"
COMMAND
${CMAKE_COMMAND} -E echo
">>>>> Notepad-- LINK_LIBRARIES: $<TARGET_PROPERTY:Notepad--,LINK_LIBRARIES>")
# Notepad--
spark_cmake_debug(
">>>>>>>>>>>>>>>>>>>>>>>>>>> Notepad-- CMake Debug <<<<<<<<<<<<<<<<<<<<<<<<<<<"
"Notepad-- LINK_LIBRARIES: $<TARGET_PROPERTY:Notepad--,LINK_LIBRARIES>"
"Notepad-- COMPILE_DEFINITIONS: $<TARGET_PROPERTY:Notepad--,COMPILE_DEFINITIONS>"
"Notepad-- INTERFACE: $<TARGET_PROPERTY:Notepad--,INTERFACE>"
"Notepad-- TARGET_FILE_BASE_NAME: $<TARGET_FILE_BASE_NAME:Notepad-->"
"Notepad-- TARGET_FILE_NAME: $<TARGET_FILE_NAME:Notepad-->"
">>>>>>>>>>>>>>>>>>>>>>>>>>> Notepad-- CMake Debug <<<<<<<<<<<<<<<<<<<<<<<<<<<"
)

View File

@ -77,3 +77,14 @@ if(UNIX)
# QSCINTILLA_EXPORT
)
endif(UNIX)
# QSci
spark_cmake_debug(
">>>>>>>>>>>>>>>>>>>>>>>>>>> QSci CMake Debug <<<<<<<<<<<<<<<<<<<<<<<<<<<"
"QSci LINK_LIBRARIES: $<TARGET_PROPERTY:QSci,LINK_LIBRARIES>"
"QSci COMPILE_DEFINITIONS: $<TARGET_PROPERTY:QSci,COMPILE_DEFINITIONS>"
"QSci INTERFACE: $<TARGET_PROPERTY:QSci,INTERFACE>"
"QSci TARGET_FILE_BASE_NAME: $<TARGET_FILE_BASE_NAME:QSci>"
"QSci TARGET_FILE_NAME: $<TARGET_FILE_NAME:QSci>"
">>>>>>>>>>>>>>>>>>>>>>>>>>> QSci CMake Debug <<<<<<<<<<<<<<<<<<<<<<<<<<<"
)