]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/CMakeLists.txt
At the PO template (translation) framework.
[PrivacyBrowserPC.git] / src / CMakeLists.txt
1 # Copyright © 2022 Soren Stoutner <soren@stoutner.com>.
2 #
3 # This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-pc>.
4 #
5 # Privacy Browser PC is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # Privacy Browser PC is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with Privacy Browser PC.  If not, see <http://www.gnu.org/licenses/>.
17
18
19 # Create the executable and add the resources.
20 add_executable(privacybrowser resources.qrc)
21
22 # List the sources to include in the executable.
23 target_sources(privacybrowser PRIVATE
24     main.cpp
25     mainwindow.cpp
26     privacybrowserpcview.cpp
27 )
28
29 # Add the Qt logging category.
30 ecm_qt_declare_logging_category(privacybrowser
31     HEADER privacybrowserdebug.h
32     IDENTIFIER PRIVACYBROWSER
33     CATEGORY_NAME "privacybrowser"
34 )
35
36 # Include the KConfig controller file.
37 kconfig_add_kcfg_files(privacybrowser settings.kcfgc)
38
39 # Use KDE Frameworks to handle internationalization of the following UI files.
40 ki18n_wrap_ui(privacybrowser
41     privacybrowserpcview.ui
42     settings.ui
43 )
44
45
46 target_link_libraries(privacybrowser
47     KF5::CoreAddons
48     KF5::I18n
49     KF5::XmlGui
50     KF5::ConfigWidgets
51     KF5::DBusAddons
52     KF5::Crash
53     Qt5::Widgets
54 )
55
56 install(TARGETS privacybrowser ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
57 install(PROGRAMS com.stoutner.privacybrowser  DESTINATION ${KDE_INSTALL_APPDIR})
58 install(FILES com.stounter.privacybrowser.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
59 install(FILES privacybrowserpcui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/privacybrowser)  # TODO