67 lines
1.4 KiB
CMake
67 lines
1.4 KiB
CMake
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)
|
|
|
|
add_executable(cutefish-filemanager
|
|
main.cpp
|
|
model/foldermodel.cpp
|
|
model/placesmodel.cpp
|
|
model/placesitem.cpp
|
|
model/pathbarmodel.cpp
|
|
model/dirlister.cpp
|
|
model/positioner.cpp
|
|
|
|
dialogs/propertiesdialog.cpp
|
|
dialogs/createfolderdialog.cpp
|
|
widgets/rubberband.cpp
|
|
widgets/itemviewadapter.cpp
|
|
|
|
desktop/desktopview.cpp
|
|
desktop/desktopsettings.cpp
|
|
|
|
helper/datehelper.cpp
|
|
helper/thumbnailer.cpp
|
|
helper/pathhistory.cpp
|
|
|
|
desktopiconprovider.cpp
|
|
|
|
qml.qrc
|
|
)
|
|
|
|
target_link_libraries(cutefish-filemanager
|
|
PRIVATE
|
|
Qt5::Core
|
|
Qt5::DBus
|
|
Qt5::Quick
|
|
|
|
KF5::KIOCore
|
|
KF5::KIOFileWidgets
|
|
KF5::KIOWidgets
|
|
KF5::Solid
|
|
|
|
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 /usr/bin)
|
|
install(FILES cutefish-filemanager.desktop DESTINATION "/usr/share/applications")
|
|
install(FILES ${QM_FILES} DESTINATION /usr/share/cutefish-filemanager/translations)
|