blob: a4827d6dbb8bc8a88a48c3465394147a23ad385f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
Do not fetch translations using git at build time.
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,9 +29,7 @@
set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(Qt5Widgets "${REQUIRED_QT_VERSION}" REQUIRED)
-find_package(Qt5LinguistTools "${REQUIRED_QT_VERSION}" REQUIRED)
find_package(lxqt-build-tools ${LXQTBT_MINIMUM_VERSION} REQUIRED)
-include(LXQtTranslateTs)
include(LXQtCompilerSettings NO_POLICY_SCOPE)
include(LXQtCreatePkgConfigFile)
@@ -117,26 +115,6 @@
qt5_wrap_ui(UI_SRCS ${UI})
set(PKG_CONFIG_REQ "Qt5Widgets")
-lxqt_translate_ts(QTERMWIDGET_QM
- TRANSLATION_DIR "lib/translations"
- UPDATE_TRANSLATIONS
- ${UPDATE_TRANSLATIONS}
- SOURCES
- ${SRCS} ${HDRS} ${UI}
- PULL_TRANSLATIONS
- ${PULL_TRANSLATIONS}
- CLEAN_TRANSLATIONS
- ${CLEAN_TRANSLATIONS}
- TRANSLATIONS_REPO
- ${TRANSLATIONS_REPO}
- TRANSLATIONS_REFSPEC
- ${TRANSLATIONS_REFSPEC}
- INSTALL_DIR
- ${TRANSLATIONS_DIR}
- COMPONENT
- Runtime
-)
-
add_library(${QTERMWIDGET_LIBRARY_NAME} SHARED ${SRCS} ${MOCS} ${UI_SRCS} ${QTERMWIDGET_QM})
target_link_libraries(${QTERMWIDGET_LIBRARY_NAME} Qt5::Widgets)
set_target_properties( ${QTERMWIDGET_LIBRARY_NAME} PROPERTIES
|