-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
127 lines (103 loc) · 2.73 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
project (blgui)
set(KDE_VERSION ${kde})
set(RUN_TEST ${run_test})
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
set(blgui_ui
ui/main.ui
ui/fields.ui
ui/devinfo.ui
ui/parinfo.ui
ui/about.ui
ui/visibletabs.ui
ui/mount.ui
ui/newtab.ui
ui/tabconfig.ui
ui/usertabdef.ui
)
set(blgui_RESOURCES
resources/icons.qrc
)
set(blgui_SRCS
base/globals.cpp
base/linklist.cpp
base/utils.cpp
base/config.cpp
data/alias.cpp
data/btrfs.cpp
data/changemanager.cpp
data/devicealias.cpp
data/device.cpp
data/devicelist.cpp
data/mount.cpp
data/mtab.cpp
data/partition.cpp
data/devicebase.cpp
data/deviceinfo.cpp
data/raid.cpp
data/usb.cpp
data/iscsi.cpp
data/udevmonitor.cpp
data/diskstat.cpp
data/filesystems.cpp
data/linuxraid.cpp
data/pci.cpp
data/tabdef.cpp
data/lvm.cpp
data/sortproxy.cpp
formula/scanner.cpp
formula/creator.cpp
formula/parser.cpp
formula/node.cpp
gui/about.cpp
gui/formparinfo.cpp
gui/formbasedevinfo.cpp
gui/formdevinfo.cpp
gui/fieldconfig.cpp
gui/mainwindow.cpp
gui/visibletabs.cpp
gui/mountdialog.cpp
gui/formtabdef.cpp
gui/formnewtab.cpp
gui/usertabdef.cpp
)
find_path(INC_BLKID blkid/blkid.h)
find_library(LIB_BLKID NAMES blkid)
if(NOT INC_BLKID OR NOT LIB_BLKID)
message(FATAL_ERROR "Can't find blkid")
endif()
find_path(INC_UDEV libudev.h)
find_library(LIB_UDEV NAMES udev)
if(NOT INC_UDEV OR NOT LIB_UDEV)
message(FATAL_ERROR "Can't find libudev")
endif()
include("kde5.cmake")
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
set(blgui_SRCS ${blgui_rcc_h} ${blgui_SRCS} ${blgui_ui_h})
add_executable(blgui main.cpp ${blgui_SRCS})
target_link_libraries(blgui
${blgui_LIBS}
${LIB_BLKID}
${LIB_UDEV}
)
install(TARGETS blgui ${INSTALL_TARGETS_DEFAULT_ARGS})
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
add_subdirectory(po)
if(RUN_TEST EQUAL "1")
include("blgui_test.cmake")
endif()
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Gui for displaying block device information")
SET(CPACK_RPM_PACKAGE_SUMMARY ${CPACK_PACKAGE_DESCRIPTION_SUMMARY})
SET(CPACK_RPM_PACKAGE_NAME "blgui")
SET(CPACK_PACKAGE_VENDOR "iddekingej@lycos.com")
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/Readme.txt")
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/Copyright.txt")
SET(CPACK_PACKAGE_VERSION_MAJOR "0")
SET(CPACK_PACKAGE_VERSION_MINOR "9.2")
SET(CPACK_PACKAGE_VERSION_PATCH "0")
SET(CPACK_RPM_PACKAGE_VERSION "1")
SET(CPACK_RPM_PACKAGE_LICENSE "GPLv2.0")
SET(CPACK_RPM_PACKAGE_GROUP "Administration")
SET(CPACK_RPM_PACKAGE_DESCRIPTION ${CPACK_PACKAGE_DESCRIPTION_SUMMARY})
SET(CPACK_PACKAGE_CONTACT "iddekingej@lycos.com")
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "iddekingej@lycos.com")
include(CPack)