chore: update the file

This commit is contained in:
x-tools-author 2025-07-26 17:43:31 +08:00
parent 30ac8412b6
commit e08b0bc327
3 changed files with 16 additions and 13 deletions

View File

@ -299,7 +299,7 @@ list(APPEND X_LIBS Qt${QT_VERSION_MAJOR}::Gui)
list(APPEND X_LIBS Qt${QT_VERSION_MAJOR}::Network)
list(APPEND X_LIBS Qt${QT_VERSION_MAJOR}::Svg)
list(APPEND X_LIBS Qt${QT_VERSION_MAJOR}::Widgets)
list(APPEND X_LIBS qrencode glog::glog qmdnsengine)
list(APPEND X_LIBS ${X_QRENCODE_LIB} glog::glog qmdnsengine)
if(X_ENABLE_SERIAL_PORT)
list(APPEND X_LIBS Qt${QT_VERSION_MAJOR}::SerialPort)
endif()

View File

@ -11,11 +11,12 @@ endif()
# --------------------------------------------------------------------------------------------------
# Add libencode module...
if(${CMAKE_BUILD_TYPE} STREQUAL "Release")
set(x_qrencode "qrencode")
set(X_QRENCODE_LIB "qrencode")
else()
set(x_qrencode "qrencoded")
set(X_QRENCODE_LIB "qrencoded")
endif()
message(STATUS "[qrencode] X_QRENCODE_LIB: ${X_QRENCODE_LIB}")
set(qrencode_dst_dir ${X_LIBS_DIR}/${qrencode_package_name})
if(EXISTS ${qrencode_dst_dir})
link_directories(${qrencode_dst_dir}/lib)

View File

@ -64,16 +64,18 @@ else()
set_property(TARGET zint-qt PROPERTY FOLDER "3rd")
set_property(TARGET zint-static PROPERTY FOLDER "3rd")
# Auto install Zint
add_custom_command(
OUTPUT ${X_LIBS_DIR}/${file_name}/install.stamp
COMMAND ${CMAKE_COMMAND} --install . --prefix ${X_LIBS_DIR}/${file_name}
COMMAND ${CMAKE_COMMAND} -E touch ${X_LIBS_DIR}/${file_name}/install.stamp
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/3rd/${file_name}
COMMENT "[zint] Installing Zint to ${X_LIBS_DIR}/${file_name}")
add_custom_target(QZint_auto_install ALL DEPENDS ${X_LIBS_DIR}/${file_name}/install.stamp)
add_dependencies(QZint_auto_install QZint zint-qt zint-static)
set_property(TARGET QZint_auto_install PROPERTY FOLDER "3rd")
if(QT_VERSION VERSION_GREATER_EQUAL "6.8.0")
# Auto install Zint
add_custom_command(
OUTPUT ${X_LIBS_DIR}/${file_name}/install.stamp
COMMAND ${CMAKE_COMMAND} --install . --prefix ${X_LIBS_DIR}/${file_name}
COMMAND ${CMAKE_COMMAND} -E touch ${X_LIBS_DIR}/${file_name}/install.stamp
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/3rd/${file_name}
COMMENT "[zint] Installing Zint to ${X_LIBS_DIR}/${file_name}")
add_custom_target(QZint_auto_install ALL DEPENDS ${X_LIBS_DIR}/${file_name}/install.stamp)
add_dependencies(QZint_auto_install QZint zint-qt zint-static)
set_property(TARGET QZint_auto_install PROPERTY FOLDER "3rd")
endif()
set(X_ZINT_USING_SRC
ON
CACHE BOOL "Use Zint source code")