mirror of https://gitee.com/cxasm/notepad--.git
cmake-debug: 增加目标驱动内部信息调试打印
1. QSci 基本属性与可传染性编译时宏定义 2. Notepad-- 基本属性
This commit is contained in:
parent
aba6da24dd
commit
dffdfe82c9
|
@ -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)
|
|
@ -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 <<<<<<<<<<<<<<<<<<<<<<<<<<<"
|
||||
)
|
|
@ -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 <<<<<<<<<<<<<<<<<<<<<<<<<<<"
|
||||
)
|
Loading…
Reference in New Issue