-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
54 lines (40 loc) · 1.09 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
cmake_minimum_required(VERSION 3.0)
set(FINGERBOARD_VERSION 0.2.2)
project(fingerboard VERSION ${FINGERBOARD_VERSION})
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(ECM 1.7.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${ECM_MODULE_PATH})
find_package(
Qt5
REQUIRED
NO_MODULE
COMPONENTS
Core
Qml
Quick
DBus
QuickControls2
)
include(ECMSetupVersion)
include(ECMInstallIcons)
include(ECMAddAppIcon)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(FeatureSummary)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
ecm_setup_version(
${FINGERBOARD_VERSION}
VARIABLE_PREFIX FINGERBOARD
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/fingerboard_version.h"
)
ecm_install_icons(
ICONS src/assets/sc-apps-fingerboard.svg
DESTINATION share/icons
)
install(FILES fingerboard.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
add_subdirectory(src)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
include(cmake/cpack.cmake)