Mon, 07 Mar 2022 21:50:09 +0100
Show changes in the steps table. Delete row implemented.
1 | 1 | # CMakeLists.txt is part of bmsapp |
2 | # | |
3 | ||
4 | PROJECT(bmsapp) | |
5 | CMAKE_MINIMUM_REQUIRED( VERSION 3.6 ) | |
6 | SET(bmsapp_EXECUTABLE "bmsapp") | |
7 | MESSAGE( STATUS "Building bmsapp" ) | |
8 | ||
2
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
9 | # ===== Set application version ===== |
1 | 10 | |
11 | SET( bmsapp_VERSION_MAJOR 0 ) | |
12 | SET( bmsapp_VERSION_MINOR 1 ) | |
13 | SET( bmsapp_VERSION_PATCH 0 ) | |
14 | ||
15 | # Compile flags | |
16 | ||
31
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
17 | OPTION(DO_RELEASE_BUILD "If on, will do a release build. Otherwise, debug build." OFF) |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
18 | option(UPDATE_TRANSLATIONS "Enable rescanning sources to update .ts files" OFF) |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
19 | |
1 | 20 | # Automatically run moc on source files when necessary |
21 | set(CMAKE_AUTOMOC ON) | |
3 | 22 | set(CMAKE_AUTOUIC ON) |
23 | set(CMAKE_AUTORCC ON) | |
1 | 24 | |
25 | SET( CMAKE_CXX_FLAGS_RELEASE "-Wall -ansi -pedantic -Wno-long-long -O2 -pipe" ) | |
26 | SET( CMAKE_CXX_FLAGS_DEBUG "-Wall -g3 -pipe" ) | |
27 | ||
28 | #====================================================Set build type===================================================== | |
29 | # We might always to tell the compiler to include debugging information (eg via the -g option on gcc). It makes the | |
30 | # binaries slightly bigger on Linux, but helps greatly in analysing core dumps etc. (In closed-source projects people | |
31 | # sometimes turn it off for release builds to make it harder to reverse engineer the software, but obviously that's not | |
32 | # an issue for us.) | |
33 | # | |
34 | # However, setting CMAKE_BUILD_TYPE to "Debug", also changes other things, such as the default location for config | |
35 | # files, which we don't want on a release build, so we would probably need to set compiler flags directly. | |
36 | # | |
37 | # .:TBD:. Investigate whether setting CMAKE_BUILD_TYPE to "RelWithDebInfo" does what we want. | |
38 | # | |
39 | #IF( ${DO_RELEASE_BUILD} ) | |
40 | # SET(CMAKE_BUILD_TYPE "Release") | |
41 | #ELSE() | |
42 | # SET(CMAKE_BUILD_TYPE "Debug") | |
43 | #ENDIF() | |
44 | ||
2
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
45 | # ===== Directories ===== |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
46 | |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
47 | IF( NOT EXEC_PREFIX ) |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
48 | SET( EXEC_PREFIX ${CMAKE_INSTALL_PREFIX} ) |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
49 | ENDIF() |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
50 | |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
51 | SET( DATAROOTDIR "${EXEC_PREFIX}/share" ) |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
52 | SET( BINDIR "${EXEC_PREFIX}/bin" ) |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
53 | IF( NOT DOCDIR ) |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
54 | SET( DOCDIR "${DATAROOTDIR}/doc/${CMAKE_PROJECT_NAME}" ) |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
55 | ENDIF() |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
56 | |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
57 | SET( DATAPATH "${DATAROOTDIR}/${CMAKE_PROJECT_NAME}" ) |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
58 | SET( TARGETPATH ${BINDIR} ) |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
59 | SET( DOCPATH ${DOCDIR} ) |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
60 | |
1 | 61 | |
62 | SET(ROOTDIR "${CMAKE_CURRENT_SOURCE_DIR}") | |
63 | SET(SRCDIR "${ROOTDIR}/src") | |
3 | 64 | SET(UIDIR "${ROOTDIR}/ui") |
2
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
65 | SET(DATADIR "${ROOTDIR}/data") |
31
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
66 | SET(TRANSLATIONSDIR "${ROOTDIR}/translations") |
1 | 67 | |
68 | INCLUDE_DIRECTORIES(${SRCDIR}) | |
69 | INCLUDE_DIRECTORIES("${CMAKE_BINARY_DIR}/src") # In case of out-of-source build. | |
70 | ||
2
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
71 | # ===== Find Qt5 ===== |
1 | 72 | |
2
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
73 | # Minimum versio 5.13 for debug messages. |
31
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
74 | find_package(Qt5 5.13 REQUIRED COMPONENTS Core Widgets Network Sql LinguistTools) |
1 | 75 | |
3 | 76 | # PrintSupport Xml LinguistTools |
1 | 77 | |
78 | # Some extra files for the "make clean" target. | |
79 | SET_PROPERTY( | |
80 | DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | |
81 | PROPERTY ADDITIONAL_MAKE_CLEAN_FILES | |
82 | cmake_install.cmake | |
83 | compile_commands.json | |
84 | CMakeCache.txt | |
85 | ) | |
86 | ||
2
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
87 | # ===== Setup the config.h ===== |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
88 | |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
89 | SET( CONFIGDATADIR "${DATAPATH}/" ) |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
90 | SET( CONFIGDOCDIR "${DOCPATH}/" ) |
1 | 91 | |
92 | # Tell cmake where the configure file is and where | |
93 | # to put the output. All variables in config.in written as "${VAR}$ | |
94 | # will be replaced by VAR as determined by cmake in config.h. | |
95 | # Outputs only in the build directory. | |
96 | CONFIGURE_FILE( src/config.in src/config.h ) | |
97 | ||
2
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
98 | # ===== All sources ===== |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
99 | |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
100 | set( SRCS |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
101 | ${SRCDIR}/main.cpp |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
102 | ${SRCDIR}/bmsapp.cpp |
4 | 103 | ${SRCDIR}/AboutDialog.cpp |
6
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
104 | ${SRCDIR}/InventorySuppliers.cpp |
10
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
105 | ${SRCDIR}/EditSupplier.cpp |
19
c94edc758a5b
Added Inventory Fermentables table.
Michiel Broek <mbroek@mbse.eu>
parents:
18
diff
changeset
|
106 | ${SRCDIR}/InventoryFermentables.cpp |
20
fcbbddcc22c1
Completed the Fermentables editor.
Michiel Broek <mbroek@mbse.eu>
parents:
19
diff
changeset
|
107 | ${SRCDIR}/EditFermentable.cpp |
24 | 108 | ${SRCDIR}/InventoryHops.cpp |
109 | ${SRCDIR}/EditHop.cpp | |
25
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
24
diff
changeset
|
110 | ${SRCDIR}/InventoryYeasts.cpp |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
24
diff
changeset
|
111 | ${SRCDIR}/EditYeast.cpp |
28
93a70b1502ca
Added the inventory miscs table.
Michiel Broek <mbroek@mbse.eu>
parents:
25
diff
changeset
|
112 | ${SRCDIR}/InventoryMiscs.cpp |
93a70b1502ca
Added the inventory miscs table.
Michiel Broek <mbroek@mbse.eu>
parents:
25
diff
changeset
|
113 | ${SRCDIR}/EditMisc.cpp |
29
76846c99f827
Added inventory water editor and table. In Yeasts table make sure the fields without a tickmark are empty. Removed Utils::Round function, not reliable.
Michiel Broek <mbroek@mbse.eu>
parents:
28
diff
changeset
|
114 | ${SRCDIR}/InventoryWaters.cpp |
76846c99f827
Added inventory water editor and table. In Yeasts table make sure the fields without a tickmark are empty. Removed Utils::Round function, not reliable.
Michiel Broek <mbroek@mbse.eu>
parents:
28
diff
changeset
|
115 | ${SRCDIR}/EditWater.cpp |
30
0fec6a1abd13
Added inventory equipment table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
29
diff
changeset
|
116 | ${SRCDIR}/InventoryEquipments.cpp |
0fec6a1abd13
Added inventory equipment table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
29
diff
changeset
|
117 | ${SRCDIR}/EditEquipment.cpp |
48
ddd1171ecda5
Added profile water table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
31
diff
changeset
|
118 | ${SRCDIR}/ProfileWaters.cpp |
ddd1171ecda5
Added profile water table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
31
diff
changeset
|
119 | ${SRCDIR}/EditProfileWater.cpp |
49
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
120 | ${SRCDIR}/ProfileMashs.cpp |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
121 | ${SRCDIR}/EditProfileMash.cpp |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
14
diff
changeset
|
122 | ${SRCDIR}/Setup.cpp |
20
fcbbddcc22c1
Completed the Fermentables editor.
Michiel Broek <mbroek@mbse.eu>
parents:
19
diff
changeset
|
123 | ${SRCDIR}/Utils.cpp |
3 | 124 | ${SRCDIR}/MainWindow.cpp |
125 | ${SRCDIR}/database/database.cpp | |
20
fcbbddcc22c1
Completed the Fermentables editor.
Michiel Broek <mbroek@mbse.eu>
parents:
19
diff
changeset
|
126 | ${SRCDIR}/nulldateedit.cpp |
2
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
127 | ) |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
128 | |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
129 | set( HDRS |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
130 | ${SRCDIR}/bmsapp.h |
4 | 131 | ${SRCDIR}/AboutDialog.h |
6
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
132 | ${SRCDIR}/InventorySuppliers.h |
10
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
133 | ${SRCDIR}/EditSupplier.h |
19
c94edc758a5b
Added Inventory Fermentables table.
Michiel Broek <mbroek@mbse.eu>
parents:
18
diff
changeset
|
134 | ${SRCDIR}/InventoryFermentables.h |
20
fcbbddcc22c1
Completed the Fermentables editor.
Michiel Broek <mbroek@mbse.eu>
parents:
19
diff
changeset
|
135 | ${SRCDIR}/EditFermentable.h |
24 | 136 | ${SRCDIR}/InventoryHops.h |
137 | ${SRCDIR}/EditHop.h | |
25
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
24
diff
changeset
|
138 | ${SRCDIR}/InventoryYeasts.h |
a9da2744609e
Added inventory yeasts editor. Fixed resource icons location.
Michiel Broek <mbroek@mbse.eu>
parents:
24
diff
changeset
|
139 | ${SRCDIR}/EditYeast.h |
28
93a70b1502ca
Added the inventory miscs table.
Michiel Broek <mbroek@mbse.eu>
parents:
25
diff
changeset
|
140 | ${SRCDIR}/InventoryMiscs.h |
93a70b1502ca
Added the inventory miscs table.
Michiel Broek <mbroek@mbse.eu>
parents:
25
diff
changeset
|
141 | ${SRCDIR}/EditMisc.h |
29
76846c99f827
Added inventory water editor and table. In Yeasts table make sure the fields without a tickmark are empty. Removed Utils::Round function, not reliable.
Michiel Broek <mbroek@mbse.eu>
parents:
28
diff
changeset
|
142 | ${SRCDIR}/InventoryWaters.h |
76846c99f827
Added inventory water editor and table. In Yeasts table make sure the fields without a tickmark are empty. Removed Utils::Round function, not reliable.
Michiel Broek <mbroek@mbse.eu>
parents:
28
diff
changeset
|
143 | ${SRCDIR}/EditWater.h |
30
0fec6a1abd13
Added inventory equipment table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
29
diff
changeset
|
144 | ${SRCDIR}/InventoryEquipments.h |
0fec6a1abd13
Added inventory equipment table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
29
diff
changeset
|
145 | ${SRCDIR}/EditEquipment.h |
48
ddd1171ecda5
Added profile water table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
31
diff
changeset
|
146 | ${SRCDIR}/ProfileWaters.h |
ddd1171ecda5
Added profile water table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
31
diff
changeset
|
147 | ${SRCDIR}/EditProfileWater.h |
49
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
148 | ${SRCDIR}/ProfileMashs.h |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
149 | ${SRCDIR}/EditProfileMash.h |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
14
diff
changeset
|
150 | ${SRCDIR}/Setup.h |
20
fcbbddcc22c1
Completed the Fermentables editor.
Michiel Broek <mbroek@mbse.eu>
parents:
19
diff
changeset
|
151 | ${SRCDIR}/Utils.h |
3 | 152 | ${SRCDIR}/MainWindow.h |
153 | ${SRCDIR}/database/database.h | |
20
fcbbddcc22c1
Completed the Fermentables editor.
Michiel Broek <mbroek@mbse.eu>
parents:
19
diff
changeset
|
154 | ${SRCDIR}/nulldateedit.h |
3 | 155 | ) |
156 | ||
157 | set( UIS | |
4 | 158 | ${UIDIR}/AboutDialog.ui |
6
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
159 | ${UIDIR}/InventorySuppliers.ui |
10
8aa2bd9ba9e8
Added the EditSupplier popup window. It is now ready to validate the form data.
Michiel Broek <mbroek@mbse.eu>
parents:
6
diff
changeset
|
160 | ${UIDIR}/EditSupplier.ui |
19
c94edc758a5b
Added Inventory Fermentables table.
Michiel Broek <mbroek@mbse.eu>
parents:
18
diff
changeset
|
161 | ${UIDIR}/InventoryFermentables.ui |
20
fcbbddcc22c1
Completed the Fermentables editor.
Michiel Broek <mbroek@mbse.eu>
parents:
19
diff
changeset
|
162 | ${UIDIR}/EditFermentable.ui |
23
1ac3fb2569c1
Added ui files for hops, yeasts and misc inventory.
Michiel Broek <mbroek@mbse.eu>
parents:
20
diff
changeset
|
163 | ${UIDIR}/InventoryHops.ui |
1ac3fb2569c1
Added ui files for hops, yeasts and misc inventory.
Michiel Broek <mbroek@mbse.eu>
parents:
20
diff
changeset
|
164 | ${UIDIR}/EditHop.ui |
1ac3fb2569c1
Added ui files for hops, yeasts and misc inventory.
Michiel Broek <mbroek@mbse.eu>
parents:
20
diff
changeset
|
165 | ${UIDIR}/InventoryYeasts.ui |
1ac3fb2569c1
Added ui files for hops, yeasts and misc inventory.
Michiel Broek <mbroek@mbse.eu>
parents:
20
diff
changeset
|
166 | ${UIDIR}/EditYeast.ui |
1ac3fb2569c1
Added ui files for hops, yeasts and misc inventory.
Michiel Broek <mbroek@mbse.eu>
parents:
20
diff
changeset
|
167 | ${UIDIR}/InventoryMiscs.ui |
1ac3fb2569c1
Added ui files for hops, yeasts and misc inventory.
Michiel Broek <mbroek@mbse.eu>
parents:
20
diff
changeset
|
168 | ${UIDIR}/EditMisc.ui |
29
76846c99f827
Added inventory water editor and table. In Yeasts table make sure the fields without a tickmark are empty. Removed Utils::Round function, not reliable.
Michiel Broek <mbroek@mbse.eu>
parents:
28
diff
changeset
|
169 | ${UIDIR}/InventoryWaters.ui |
30
0fec6a1abd13
Added inventory equipment table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
29
diff
changeset
|
170 | ${UIDIR}/EditWater.ui |
0fec6a1abd13
Added inventory equipment table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
29
diff
changeset
|
171 | ${UIDIR}/InventoryEquipments.ui |
0fec6a1abd13
Added inventory equipment table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
29
diff
changeset
|
172 | ${UIDIR}/EditEquipment.ui |
48
ddd1171ecda5
Added profile water table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
31
diff
changeset
|
173 | ${UIDIR}/ProfileWaters.ui |
ddd1171ecda5
Added profile water table and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
31
diff
changeset
|
174 | ${UIDIR}/EditProfileWater.ui |
49
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
175 | ${UIDIR}/ProfileMashs.ui |
29cf6e350063
Added Mash profiles table and the first part of the Mash profile editor. Edit and write must be written.
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
176 | ${UIDIR}/EditProfileMash.ui |
15
c58b82549713
Started adding the global setup screen.
Michiel Broek <mbroek@mbse.eu>
parents:
14
diff
changeset
|
177 | ${UIDIR}/Setup.ui |
3 | 178 | ${UIDIR}/MainWindow.ui |
2
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
179 | ) |
1 | 180 | |
31
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
181 | |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
182 | set( TS_FILES |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
183 | ${TRANSLATIONSDIR}/bmsapp_en.ts # English |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
184 | ${TRANSLATIONSDIR}/bmsapp_nl.ts # Dutch |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
185 | ) |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
186 | |
1 | 187 | set( SOURCE_FILES |
2
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
188 | ${SRCS} |
a1e435907f3a
Added commandline parameters. Added initial app functions. Added user configuration read/write/create.
Michiel Broek <mbroek@mbse.eu>
parents:
1
diff
changeset
|
189 | ${HDRS} |
3 | 190 | ${UIS} |
191 | resources/icons.qrc | |
14
8a304c898a75
Added QDarkStyle stylesheet and images. Updated About window. Some minor layout improvements.
Michiel Broek <mbroek@mbse.eu>
parents:
10
diff
changeset
|
192 | resources/qdarkstyle/theme/style.qrc |
1 | 193 | ) |
194 | ||
195 | # ===== Build the application ===== | |
196 | ||
31
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
197 | # Run with cmake -DUPDATE_TRANSLATIONS=ON .. |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
198 | # or cmake -DUPDATE_TRANSLATIONS=OFF .. |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
199 | |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
200 | if(UPDATE_TRANSLATIONS) |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
201 | message("** parse sources for new translations") |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
202 | qt5_create_translation(QM_FILES ${SOURCE_FILES} ${TS_FILES}) |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
203 | else() |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
204 | message("** update qm files") |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
205 | qt5_add_translation(QM_FILES ${TS_FILES}) |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
206 | endif() |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
207 | |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
208 | add_executable(${bmsapp_EXECUTABLE} ${SOURCE_FILES} ${QM_FILES}) |
3 | 209 | target_link_libraries(${bmsapp_EXECUTABLE} Qt5::Core Qt5::Widgets Qt5::Network Qt5::Sql) |
1 | 210 | |
31
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
211 | # `make translations' |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
212 | add_custom_target(translations DEPENDS ${QM_FILES}) |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
213 | |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
214 | |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
215 | # ===== Install the application ===== |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
216 | |
ab17a56a47dd
Setup translation system and started the Dutch translation
Michiel Broek <mbroek@mbse.eu>
parents:
30
diff
changeset
|
217 |