-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
66 lines (52 loc) · 1.31 KB
/
CMakeLists.txt
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
cmake_minimum_required(VERSION 3.5)
project(Movar_cpp VERSION 1.0.2 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt6 REQUIRED COMPONENTS Widgets
LinguistTools WebEngineWidgets TextToSpeech)
qt_standard_project_setup()
qt_add_lupdate(
TS_FILES
translations/Movar_cpp_en_US.ts
translations/Movar_cpp_ja_JP.ts
translations/Movar_cpp_uk_UA.ts
SOURCES
mainwindow.cpp
dictionarysettings.cpp
fileloader.cpp
mainwindow.ui
dictionarysettings.ui
)
qt_add_lrelease(
TS_FILES
translations/Movar_cpp_en_US.ts
translations/Movar_cpp_ja_JP.ts
translations/Movar_cpp_uk_UA.ts
)
qt_add_executable(Movar_cpp
mainwindow.ui
mainwindow.h
mainwindow.cpp
main.cpp
dictionarysettings.h
dictionarysettings.cpp
dictionarysettings.ui
fileloader.h
fileloader.cpp
adaptedcompleter.h
adaptedcompleter.cpp
adaptedstringlistmodel.h
adaptedstringlistmodel.cpp
)
add_dependencies(${CMAKE_PROJECT_NAME} update_translations)
target_link_libraries(Movar_cpp PRIVATE
Qt6::Widgets
Qt6::WebEngineWidgets
Qt6::TextToSpeech)
set_target_properties(Movar_cpp PROPERTIES
WIN32_EXECUTABLE ON
)
install(TARGETS Movar_cpp
BUNDLE DESTINATION .
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)