-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
54 lines (46 loc) · 1.21 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
#
# SPDX-FileCopyrightText: 2018 Olivier Serve <tifauv@gmail.com>
#
# SPDX-License-Identifier: LGPL-2.0-or-later
#
cmake_minimum_required (VERSION 3.1)
project (MyWallet VERSION 0.2 LANGUAGES CXX)
set (CMAKE_INCLUDE_CURRENT_DIR ON)
set (CMAKE_AUTOMOC ON)
set (CMAKE_AUTORCC ON)
set (CMAKE_CXX_STANDARD 11)
set (CMAKE_CXX_STANDARD_REQUIRED ON)
# Find dependencies
find_package (Qt5 COMPONENTS Core Quick REQUIRED)
find_package (KF5Kirigami2 REQUIRED)
find_package (KF5Wallet REQUIRED)
find_package (KF5Config REQUIRED)
# Configure a header file to pass some CMake settings to the source code
configure_file (
"${PROJECT_SOURCE_DIR}/MyWalletConfig.h.in"
"${PROJECT_BINARY_DIR}/MyWalletConfig.h"
)
# Add the binary tree to the search path for include files
include_directories ("${PROJECT_BINARY_DIR}")
# Main executable
add_executable (MyWallet
core/Account.cpp
core/Folder.cpp
core/Wallet.cpp
core/Backend.cpp
core/KWalletBackend.cpp
app/QmlClipboardAdapter.cpp
app/Config.cpp
app/main.cpp
app/ui.qrc
)
target_link_libraries (MyWallet
Qt5::Core
Qt5::Quick
KF5::Wallet
KF5::ConfigCore
)
install (TARGETS MyWallet DESTINATION bin)
install (
FILES app/eu.catwitch.mywallet.desktop
DESTINATION share/applications)