-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
77 lines (59 loc) · 1.48 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
project (ofgui)
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
set(QT_MIN_VERSION "5.3.0")
set(KF5_MIN_VERSION "5.2.0")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
find_package(ECM REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
include("package.cmake")
include(CPack)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings)
include(FeatureSummary)
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
Core
)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
CoreAddons
I18n
WidgetsAddons
Config
)
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
KI18N_WRAP_UI(ofgui_ui_h
ui/main.ui
ui/monitor.ui
ui/about.ui
ui/fileinfo.ui
)
qt5_add_resources(ofgui_res_h icons.qrc)
set(ofgui_SRCS
src/mainwindow.cpp
src/os.cpp
src/data.cpp
src/monitordialog.cpp
src/processiterator.cpp
src/filelogitem.cpp
src/openfileiterator.cpp
src/processlist.cpp
src/utils.cpp
src/about.cpp
src/fileinfo.cpp
)
set(ofgui_SRCS ${ofgui_res_h} ${ofgui_SRCS} ${ofgui_ui_h})
add_executable(ofgui src/main.cpp ${ofgui_SRCS})
target_link_libraries(ofgui
Qt5::Widgets
KF5::CoreAddons
KF5::ConfigCore
KF5::I18n
${LIB_BLKID}
)
install(TARGETS ofgui ${INSTALL_TARGETS_DEFAULT_ARGS})
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
if("${test}" EQUAL "1")
include("test.cmake")
endif()
add_subdirectory(po)