forked from KDE/kdev-upload
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
85 lines (70 loc) · 2.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
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
cmake_minimum_required(VERSION 3.0)
project(upload)
set(VERSION_MAJOR 1)
set(VERSION_MINOR 9)
set(VERSION_PATCH 90)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
configure_file( "${upload_SOURCE_DIR}/version.h.cmake" "${upload_BINARY_DIR}/version.h" @ONLY )
set(ECM_DEP_VERSION "5.15.0")
find_package (ECM ${ECM_DEP_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${upload_SOURCE_DIR}/cmake/)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMAddTests)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(FeatureSummary)
include(ECMQtDeclareLoggingCategory)
set(QT_MIN_VERSION "5.7.0")
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Core Widgets)
set(KF5_DEP_VERSION "5.28.0")
find_package(KF5 ${KF5_DEP_VERSION} REQUIRED COMPONENTS
I18n
ItemModels # needed because missing in KDevPlatformConfig.cmake, remove once dep on kdevplatform >=5.2.2
KIO
KCMUtils
)
set(KDEVPLATFORM_DEP_VERSION "5.5.0")
find_package(KDevPlatform ${KDEVPLATFORM_DEP_VERSION} CONFIG)
set_package_properties(KDevPlatform PROPERTIES
TYPE REQUIRED
)
add_definitions(-DTRANSLATION_DOMAIN=\"kdevupload\")
add_subdirectory(tests)
#plugin
set(kdevupload_PART_SRCS
kdevuploadplugin.cpp
allprofilesmodel.cpp
profilesfiletree.cpp
uploaddialog.cpp
uploadjob.cpp
uploadprofiledlg.cpp
uploadprofileitem.cpp
uploadprofilemodel.cpp
uploadprojectmodel.cpp
uploadpreferences.cpp
)
set(kdevupload_UI
uploaddialog.ui
uploadprofiledlg.ui
uploadpreferences.ui
)
ecm_qt_declare_logging_category(kdevupload_PART_SRCS
HEADER kdevuploaddebug.h
IDENTIFIER KDEVUPLOAD
CATEGORY_NAME "kdevelop.plugins.upload"
)
ki18n_wrap_ui(kdevupload_PART_SRCS ${kdevupload_UI})
kconfig_add_kcfg_files( kdevupload_PART_SRCS uploadconfig.kcfgc )
qt5_add_resources(kdevupload_PART_SRCS kdevupload.qrc)
kdevplatform_add_plugin(kdevupload JSON kdevupload.json SOURCES ${kdevupload_PART_SRCS})
target_link_libraries(kdevupload
KDev::Interfaces
KDev::Project
KDev::Serialization
KF5::I18n
KF5::KCMUtils
KF5::KIOFileWidgets
)
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)