Updated CMakeLists.txt and deploy.ps1 files
This commit is contained in:
parent
7425ae770f
commit
9e0c95be98
@ -45,6 +45,8 @@ foreach ($language in @{
|
|||||||
"Copy to Clipboard",
|
"Copy to Clipboard",
|
||||||
"DeepL Translate",
|
"DeepL Translate",
|
||||||
"DevTools DeepL Translate",
|
"DevTools DeepL Translate",
|
||||||
|
"DevTools Google Translate",
|
||||||
|
"DevTools Systran Translate",
|
||||||
"Extra Newlines",
|
"Extra Newlines",
|
||||||
"Extra Window",
|
"Extra Window",
|
||||||
"Google Translate",
|
"Google Translate",
|
||||||
|
@ -7,6 +7,8 @@ add_library(Bing\ Translate MODULE bingtranslate.cpp translatewrapper.cpp networ
|
|||||||
add_library(Copy\ to\ Clipboard MODULE copyclipboard.cpp extensionimpl.cpp)
|
add_library(Copy\ to\ Clipboard MODULE copyclipboard.cpp extensionimpl.cpp)
|
||||||
add_library(DeepL\ Translate MODULE deepltranslate.cpp translatewrapper.cpp network.cpp extensionimpl.cpp)
|
add_library(DeepL\ Translate MODULE deepltranslate.cpp translatewrapper.cpp network.cpp extensionimpl.cpp)
|
||||||
add_library(DevTools\ DeepL\ Translate MODULE devtoolsdeepltranslate.cpp devtools.cpp translatewrapper.cpp network.cpp extensionimpl.cpp)
|
add_library(DevTools\ DeepL\ Translate MODULE devtoolsdeepltranslate.cpp devtools.cpp translatewrapper.cpp network.cpp extensionimpl.cpp)
|
||||||
|
add_library(DevTools\ Google\ Translate MODULE devtoolsgoogletranslate.cpp devtools.cpp translatewrapper.cpp network.cpp extensionimpl.cpp)
|
||||||
|
add_library(DevTools\ Systran\ Translate MODULE devtoolssystrantranslate.cpp devtools.cpp translatewrapper.cpp network.cpp extensionimpl.cpp)
|
||||||
add_library(Extra\ Newlines MODULE extranewlines.cpp extensionimpl.cpp)
|
add_library(Extra\ Newlines MODULE extranewlines.cpp extensionimpl.cpp)
|
||||||
add_library(Extra\ Window MODULE extrawindow.cpp extensionimpl.cpp)
|
add_library(Extra\ Window MODULE extrawindow.cpp extensionimpl.cpp)
|
||||||
add_library(Google\ Translate MODULE googletranslate.cpp translatewrapper.cpp network.cpp extensionimpl.cpp)
|
add_library(Google\ Translate MODULE googletranslate.cpp translatewrapper.cpp network.cpp extensionimpl.cpp)
|
||||||
@ -24,6 +26,8 @@ target_precompile_headers(Bing\ Translate REUSE_FROM pch)
|
|||||||
target_precompile_headers(Copy\ to\ Clipboard REUSE_FROM pch)
|
target_precompile_headers(Copy\ to\ Clipboard REUSE_FROM pch)
|
||||||
target_precompile_headers(DeepL\ Translate REUSE_FROM pch)
|
target_precompile_headers(DeepL\ Translate REUSE_FROM pch)
|
||||||
target_precompile_headers(DevTools\ DeepL\ Translate REUSE_FROM pch)
|
target_precompile_headers(DevTools\ DeepL\ Translate REUSE_FROM pch)
|
||||||
|
target_precompile_headers(DevTools\ Google\ Translate REUSE_FROM pch)
|
||||||
|
target_precompile_headers(DevTools\ Systran\ Translate REUSE_FROM pch)
|
||||||
target_precompile_headers(Extra\ Newlines REUSE_FROM pch)
|
target_precompile_headers(Extra\ Newlines REUSE_FROM pch)
|
||||||
target_precompile_headers(Extra\ Window REUSE_FROM pch)
|
target_precompile_headers(Extra\ Window REUSE_FROM pch)
|
||||||
target_precompile_headers(Google\ Translate REUSE_FROM pch)
|
target_precompile_headers(Google\ Translate REUSE_FROM pch)
|
||||||
@ -40,6 +44,8 @@ target_precompile_headers(Thread\ Linker REUSE_FROM pch)
|
|||||||
target_link_libraries(Bing\ Translate winhttp Qt5::Widgets)
|
target_link_libraries(Bing\ Translate winhttp Qt5::Widgets)
|
||||||
target_link_libraries(DeepL\ Translate winhttp Qt5::Widgets)
|
target_link_libraries(DeepL\ Translate winhttp Qt5::Widgets)
|
||||||
target_link_libraries(DevTools\ DeepL\ Translate shell32 winhttp Qt5::Widgets Qt5::WebSockets)
|
target_link_libraries(DevTools\ DeepL\ Translate shell32 winhttp Qt5::Widgets Qt5::WebSockets)
|
||||||
|
target_link_libraries(DevTools\ Google\ Translate shell32 winhttp Qt5::Widgets Qt5::WebSockets)
|
||||||
|
target_link_libraries(DevTools\ Systran\ Translate shell32 winhttp Qt5::Widgets Qt5::WebSockets)
|
||||||
target_link_libraries(Extra\ Window Qt5::Widgets)
|
target_link_libraries(Extra\ Window Qt5::Widgets)
|
||||||
target_link_libraries(Google\ Translate winhttp Qt5::Widgets)
|
target_link_libraries(Google\ Translate winhttp Qt5::Widgets)
|
||||||
target_link_libraries(Lua lua53 Qt5::Widgets)
|
target_link_libraries(Lua lua53 Qt5::Widgets)
|
||||||
@ -56,4 +62,16 @@ if (NOT EXISTS ${CMAKE_FINAL_OUTPUT_DIRECTORY}/Qt5WebSockets.dll AND NOT EXISTS
|
|||||||
COMMAND set PATH=%PATH%$<SEMICOLON>${qt5_install_prefix}/bin
|
COMMAND set PATH=%PATH%$<SEMICOLON>${qt5_install_prefix}/bin
|
||||||
COMMAND Qt5::windeployqt --dir ${CMAKE_FINAL_OUTPUT_DIRECTORY} "${CMAKE_FINAL_OUTPUT_DIRECTORY}/DevTools\ DeepL\ Translate.dll"
|
COMMAND Qt5::windeployqt --dir ${CMAKE_FINAL_OUTPUT_DIRECTORY} "${CMAKE_FINAL_OUTPUT_DIRECTORY}/DevTools\ DeepL\ Translate.dll"
|
||||||
)
|
)
|
||||||
|
add_custom_command(TARGET DevTools\ Google\ Translate
|
||||||
|
POST_BUILD
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_CURRENT_BINARY_DIR}/windeployqt"
|
||||||
|
COMMAND set PATH=%PATH%$<SEMICOLON>${qt5_install_prefix}/bin
|
||||||
|
COMMAND Qt5::windeployqt --dir ${CMAKE_FINAL_OUTPUT_DIRECTORY} "${CMAKE_FINAL_OUTPUT_DIRECTORY}/DevTools\ Google\ Translate.dll"
|
||||||
|
)
|
||||||
|
add_custom_command(TARGET DevTools\ Systran\ Translate
|
||||||
|
POST_BUILD
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_CURRENT_BINARY_DIR}/windeployqt"
|
||||||
|
COMMAND set PATH=%PATH%$<SEMICOLON>${qt5_install_prefix}/bin
|
||||||
|
COMMAND Qt5::windeployqt --dir ${CMAKE_FINAL_OUTPUT_DIRECTORY} "${CMAKE_FINAL_OUTPUT_DIRECTORY}/DevTools\ Systran\ Translate.dll"
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user