cmake/platforms: 处理 QSci 被构建为动态库时 Notepad-- 缺少运行时

This commit is contained in:
zinface 2023-02-22 15:26:32 +08:00
parent 4da546af6c
commit e44e49f614
2 changed files with 19 additions and 3 deletions

View File

@ -26,6 +26,7 @@ if(TRUE)
)
# target_link_libraries(${PROJECT_NAME} QSci)
target_link_QSci(${PROJECT_NAME})
target_link_qt5_PrintSupport(${PROJECT_NAME})
target_link_qt5_XmlPatterns(${PROJECT_NAME})
endif(TRUE)

View File

@ -23,8 +23,8 @@ if(WINDOWS_DEPLOY_QT)
endif()
if (WINDOWS_DEPLOY_QT5 OR WINDOWS_DEPLOY_QT6)
message(" -------- ${CMAKE_INSTALL_PREFIX} ---------- ")
message("${WINDOWS_QT_DIR}/../../../bin/windeployqt")
message("[windows-deployqt.cmake]: find windployqt tool")
message(" ${WINDOWS_QT_DIR}/../../../bin/windeployqt")
# install(TARGETS ${PROJECT_NAME}
# DESTINATION ${CMAKE_BINARY_DIR}/windows-deployqt)
@ -48,7 +48,22 @@ if(WINDOWS_DEPLOY_QT)
# LIBRARY_OUTPUT_DIRECTORY ""
#
RUNTIME_OUTPUT_DIRECTORY ${WINDOWS_APPLICATION_DEPLOY_PATH})
# QSci Notepad--
# Notepad-- Debug
if(NOTEPAD_BUILD_BY_SHARED)
set_target_properties(QSci
PROPERTIES
# WIN32 使 WinMain(某种 Windows 内部特性)
WIN32_EXECUTABLE true
#
# ARCHIVE_OUTPUT_DIRECTORY ""
#
# LIBRARY_OUTPUT_DIRECTORY ""
#
RUNTIME_OUTPUT_DIRECTORY ${WINDOWS_APPLICATION_DEPLOY_PATH})
endif(NOTEPAD_BUILD_BY_SHARED)
# Windows Deploy Qt Application
# : windeployqt --qmldir <path-to-app-qml-files> <path-to-app-binary>
add_custom_command(TARGET ${PROJECT_NAME}