-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathCMakeLists.txt
100 lines (76 loc) · 2.2 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
cmake_minimum_required(VERSION 3.14)
project(filemanager LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt5 COMPONENTS Core DBus Quick LinguistTools REQUIRED)
# find_package(FishUI REQUIRED)
find_package(KF5KIO)
find_package(KF5Solid)
find_package(KF5WindowSystem)
find_package(KF5Config)
qt5_add_dbus_adaptor(DBUS_SOURCES
com.cutefish.FileManager.xml
application.h Application)
add_executable(cutefish-filemanager
main.cpp
application.cpp
window.cpp
dbusinterface.cpp
draganddrop/declarativedroparea.cpp
draganddrop/declarativedragdropevent.cpp
draganddrop/declarativemimedata.cpp
model/foldermodel.cpp
model/placesmodel.cpp
model/placesitem.cpp
model/pathbarmodel.cpp
model/dirlister.cpp
model/positioner.cpp
cio/cfilejob.cpp
cio/cfilesizejob.cpp
dialogs/createfolderdialog.cpp
dialogs/filepropertiesdialog.cpp
dialogs/openwithdialog.cpp
widgets/rubberband.cpp
widgets/itemviewadapter.cpp
desktop/desktop.cpp
desktop/desktopview.cpp
desktop/desktopsettings.cpp
desktop/dockdbusinterface.cpp
helper/datehelper.cpp
helper/pathhistory.cpp
helper/fm.cpp
helper/shortcut.cpp
helper/filelauncher.cpp
helper/keyboardsearchmanager.cpp
mimetype/mimeappmanager.cpp
mimetype/xdgdesktopfile.cpp
thumbnailer/thumbnailprovider.cpp
thumbnailer/thumbnailcache.cpp
desktopiconprovider.cpp
qml.qrc
${DBUS_SOURCES}
)
target_link_libraries(cutefish-filemanager
PRIVATE
Qt5::Core
Qt5::DBus
Qt5::Quick
KF5::KIOCore
KF5::KIOFileWidgets
KF5::KIOWidgets
KF5::Solid
KF5::WindowSystem
KF5::ConfigCore
# FishUI
)
file(GLOB TS_FILES translations/*.ts)
qt5_create_translation(QM_FILES ${TS_FILES})
add_custom_target(translations DEPENDS ${QM_FILES} SOURCES ${TS_FILES})
add_dependencies(cutefish-filemanager translations)
install(TARGETS cutefish-filemanager RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES cutefish-filemanager.desktop DESTINATION "/usr/share/applications")
install(FILES ${QM_FILES} DESTINATION /usr/share/cutefish-filemanager/translations)