From d15a478489b2a7f0f753fbec839da484ff3ca8df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BA=8C=E7=8B=97?= <42332005+weclix@users.noreply.github.com> Date: Thu, 7 Apr 2022 14:28:44 +0800 Subject: [PATCH] Update CMakeLists.txt Add install script --- CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 45df845..fba367b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,3 +32,18 @@ target_link_libraries(cutefish-texteditor Qt5::Quick KF5::SyntaxHighlighting ) + +# Let go of comments when adding internationalized files +# file(GLOB TS_FILES translations/*.ts) +# qt5_create_translation(QM_FILES ${TS_FILES}) +# add_custom_target(translations DEPENDS ${QM_FILES} SOURCES ${TS_FILES}) +# add_dependencies(${PROJECT_NAME} translations) +# install(FILES ${QM_FILES} DESTINATION /usr/share/cutefish-texteditor/translations) + + +install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) +install(FILES + cutefish-editor.desktop + DESTINATION /usr/share/applications/ + COMPONENT Runtime +)