-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·191 lines (181 loc) · 5.53 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
cmake_minimum_required(VERSION 3.16)
project(notatioantiqua VERSION 1.2 LANGUAGES C CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE__OSX_ARCHITECTURES arm64;x86_64)
find_package(QT NAMES Qt6 REQUIRED COMPONENTS Core)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Gui Pdf Help PrintSupport Svg Widgets)
qt_standard_project_setup()
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/images/notantiq.icns PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
qt_add_executable(notatioantiqua WIN32 MACOSX_BUNDLE
hnjalloc.c hnjalloc.h
hyphen.c hyphen.h
main.cpp
naapplication.cpp naapplication.h
naclefselect.cpp naclefselect.h naclefselect.ui
nadoinit.cpp nadoinit.h
nafindreplace.cpp nafindreplace.h nafindreplace.ui
naheaderwizard.cpp naheaderwizard.h naheaderwizard.ui
nahelp.cpp nahelp.h nahelp.ui
nainit.cpp nainit.h nainit.ui
najgabc.cpp najgabc.h najgabc.ui
namdi.cpp namdi.h
naprog.cpp naprog.h naprog.ui
napsalm.cpp napsalm.h napsalm.ui
nasettings.cpp nasettings.h nasettings.ui
nasyntax.cpp nasyntax.h
version.h
)
target_include_directories(notatioantiqua PRIVATE
.
)
target_link_libraries(notatioantiqua PRIVATE
Qt::Core
Qt::Gui
Qt::Help
Qt::PrintSupport
Qt::Svg
Qt::Widgets
Qt6::Pdf
)
# Resources:
set(i18n_resource_files
"NaProg-de.qm"
"NaProg-en.qm"
"NaProg-fr.qm"
)
qt_add_resources(notatioantiqua "i18n"
PREFIX
"/"
FILES
${i18n_resource_files}
)
set(naprog_resource_files
"help/notantiq-de.qhc"
"help/notantiq-fr.qhc"
"help/notantiq.qch"
"help/notantiq.qhc"
"help/notantiq.qhcp"
"images/acrobat.svg"
"images/action-unavailable-symbolic.svg.png"
"images/antiphon.svg"
"images/arrow-left.svg"
"images/arrow-right.svg"
"images/celeriter.svg"
"images/clef.svg"
"images/cross.svg"
"images/dagger.svg"
"images/dgs.png"
"images/document-edit-symbolic Kopie.svg.png"
"images/document-export-symbolic.svg.png"
"images/document-import-symbolic.svg.png"
"images/document-new-symbolic.svg.png"
"images/document-open-recent-symbolic.svg.png"
"images/document-open-symbolic.svg.png"
"images/document-page-setup-symbolic.svg.png"
"images/document-print-preview-symbolic.svg.png"
"images/document-print-symbolic.svg.png"
"images/document-properties-symbolic.svg.png"
"images/document-revert-symbolic.svg.png"
"images/document-save-as-symbolic.svg.png"
"images/document-save-symbolic.svg.png"
"images/document-send-symbolic.svg.png"
"images/dominican_bars.svg"
"images/double_bar.svg"
"images/edit-clear-all-symbolic.svg.png"
"images/edit-clear-symbolic-rtl.svg.png"
"images/edit-clear-symbolic.svg.png"
"images/edit-copy-symbolic.svg.png"
"images/edit-cut-symbolic.svg.png"
"images/edit-delete-symbolic.svg.png"
"images/edit-find-replace-symbolic.svg.png"
"images/edit-find-symbolic.svg.png"
"images/edit-paste-symbolic.svg.png"
"images/edit-redo-symbolic.svg.png"
"images/edit-select-all-symbolic.svg.png"
"images/edit-select-symbolic.svg.png"
"images/edit-symbolic.svg.png"
"images/edit-tag-symbolic.svg.png"
"images/edit-undo-symbolic.svg.png"
"images/exspecta.svg"
"images/format-justify-center-symbolic.svg.png"
"images/format-justify-fill-symbolic.svg.png"
"images/format-justify-left-symbolic.svg.png"
"images/format-justify-right-symbolic.svg.png"
"images/format-text-bold-symbolic.svg.png"
"images/format-text-italic-symbolic.svg.png"
"images/format-text-larger-symbolic.svg.png"
"images/format-text-remove-formatting-symbolic.svg.png"
"images/format-text-smaller-symbolic.svg.png"
"images/format-text-strikethrough-symbolic.svg.png"
"images/format-text-underline-symbolic.svg.png"
"images/full_bar.svg"
"images/gabctopdf.png"
"images/half_bar.svg"
"images/help-about.svg"
"images/lytexpdf.png"
"images/mediocriter.svg"
"images/non.svg"
"images/notantiq-dmgb.png"
"images/notantiq-icon.png"
"images/notantiq-icon.xcf"
"images/notantiq.icns"
"images/notantiq.jpg"
"images/preferences-system-symbolic.svg.png"
"images/quarter_bar.svg"
"images/question-symbolic.svg.png"
"images/responsa.svg"
"images/tenere.svg"
"images/toolbarBackground.png"
"images/user-home-symbolic.svg"
"images/versus.svg"
"images/virgula.svg"
"images/window-close-1.svg"
"images/window-maximize.svg"
"images/window-minimize.svg"
"images/window-restore.svg"
"images/windows-tile.svg"
"napsalm.csv"
"notantiq.css"
"notantiq.icns"
"notantiq.ico"
"help/masterpage_html.css"
"help/nahelp.css"
)
qt_add_resources(notatioantiqua "naprog"
PREFIX
"/"
FILES
${naprog_resource_files}
)
set(naprog1_resource_files
"font/Ubuntu-B.ttf"
"font/Ubuntu-BI.ttf"
"font/Ubuntu-C.ttf"
"font/Ubuntu-L.ttf"
"font/Ubuntu-LI.ttf"
"font/Ubuntu-M.ttf"
"font/Ubuntu-MI.ttf"
"font/Ubuntu-R.ttf"
"font/Ubuntu-RI.ttf"
"font/UbuntuMono-B.ttf"
"font/UbuntuMono-BI.ttf"
"font/UbuntuMono-R.ttf"
"font/UbuntuMono-RI.ttf"
)
qt_add_resources(notatioantiqua "naprog1"
PREFIX
"/fonts"
FILES
${naprog1_resource_files}
)
install(TARGETS notatioantiqua
BUNDLE DESTINATION .
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
qt_generate_deploy_app_script(
TARGET notatioantiqua
FILENAME_VARIABLE deploy_script
NO_UNSUPPORTED_PLATFORM_ERROR
)
install(SCRIPT ${deploy_script})