filemanager/CMakeLists.txt

101 lines
2.2 KiB
Text
Raw Permalink Normal View History

2021-03-16 00:02:20 -07:00
cmake_minimum_required(VERSION 3.14)
2021-03-29 01:51:34 -07:00
project(filemanager LANGUAGES CXX)
2021-03-16 00:02:20 -07:00
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
2021-03-29 01:51:34 -07:00
set(CMAKE_CXX_STANDARD 11)
2021-03-16 00:02:20 -07:00
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2021-03-29 01:51:34 -07:00
find_package(Qt5 COMPONENTS Core DBus Quick LinguistTools REQUIRED)
2021-07-25 10:34:33 -07:00
# find_package(FishUI REQUIRED)
2021-03-16 00:02:20 -07:00
2021-03-29 01:51:34 -07:00
find_package(KF5KIO)
find_package(KF5Solid)
2021-08-30 09:25:12 -07:00
find_package(KF5WindowSystem)
2022-01-25 21:18:43 -08:00
find_package(KF5Config)
2021-03-29 01:51:34 -07:00
qt5_add_dbus_adaptor(DBUS_SOURCES
com.cutefish.FileManager.xml
application.h Application)
2021-03-16 00:02:20 -07:00
add_executable(cutefish-filemanager
2021-03-29 01:51:34 -07:00
main.cpp
application.cpp
window.cpp
dbusinterface.cpp
2021-11-03 09:35:58 -07:00
draganddrop/declarativedroparea.cpp
draganddrop/declarativedragdropevent.cpp
draganddrop/declarativemimedata.cpp
2021-03-29 01:51:34 -07:00
model/foldermodel.cpp
model/placesmodel.cpp
model/placesitem.cpp
model/pathbarmodel.cpp
model/dirlister.cpp
model/positioner.cpp
2021-09-03 13:35:54 -07:00
cio/cfilejob.cpp
cio/cfilesizejob.cpp
dialogs/createfolderdialog.cpp
dialogs/filepropertiesdialog.cpp
2021-07-29 02:38:47 -07:00
dialogs/openwithdialog.cpp
2021-03-29 01:51:34 -07:00
widgets/rubberband.cpp
widgets/itemviewadapter.cpp
2021-09-05 14:39:56 -07:00
desktop/desktop.cpp
2021-03-29 01:51:34 -07:00
desktop/desktopview.cpp
desktop/desktopsettings.cpp
2021-09-26 21:24:42 -07:00
desktop/dockdbusinterface.cpp
2021-03-29 01:51:34 -07:00
2021-04-21 19:24:10 -07:00
helper/datehelper.cpp
2021-03-29 01:51:34 -07:00
helper/pathhistory.cpp
2021-05-21 00:55:58 -07:00
helper/fm.cpp
2021-06-15 21:43:43 -07:00
helper/shortcut.cpp
2021-07-28 12:30:17 -07:00
helper/filelauncher.cpp
2021-09-19 20:04:33 -07:00
helper/keyboardsearchmanager.cpp
2021-07-28 12:30:17 -07:00
mimetype/mimeappmanager.cpp
mimetype/xdgdesktopfile.cpp
2021-07-27 12:43:41 -07:00
thumbnailer/thumbnailprovider.cpp
thumbnailer/thumbnailcache.cpp
2021-03-29 01:51:34 -07:00
desktopiconprovider.cpp
qml.qrc
${DBUS_SOURCES}
2021-03-29 01:51:34 -07:00
)
target_link_libraries(cutefish-filemanager
PRIVATE
Qt5::Core
Qt5::DBus
Qt5::Quick
KF5::KIOCore
KF5::KIOFileWidgets
KF5::KIOWidgets
KF5::Solid
2021-08-30 09:25:12 -07:00
KF5::WindowSystem
2022-01-25 21:18:43 -08:00
KF5::ConfigCore
2021-03-29 01:51:34 -07:00
2021-07-25 10:34:33 -07:00
# FishUI
2021-03-16 00:02:20 -07:00
)
file(GLOB TS_FILES translations/*.ts)
qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
2021-03-16 00:02:20 -07:00
add_custom_target(translations DEPENDS ${QM_FILES} SOURCES ${TS_FILES})
2021-03-29 01:51:34 -07:00
add_dependencies(cutefish-filemanager translations)
2021-03-16 00:02:20 -07:00
install(TARGETS cutefish-filemanager RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
2021-03-16 00:02:20 -07:00
install(FILES cutefish-filemanager.desktop DESTINATION "/usr/share/applications")
install(FILES ${QM_FILES} DESTINATION /usr/share/cutefish-filemanager/translations)