filemanager/CMakeLists.txt

67 lines
1.4 KiB
Text
Raw 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-04-09 07:49:19 -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-03-16 00:02:20 -07:00
add_executable(cutefish-filemanager
2021-03-29 01:51:34 -07:00
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
2021-03-29 01:51:34 -07:00
widgets/rubberband.cpp
widgets/itemviewadapter.cpp
desktop/desktopview.cpp
desktop/desktopsettings.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
2021-04-09 07:49:19 -07:00
FishUI
2021-03-16 00:02:20 -07:00
)
file(GLOB TS_FILES translations/*.ts)
qt5_create_translation(QM_FILES ${TS_FILES})
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
2021-03-29 01:51:34 -07:00
install(TARGETS cutefish-filemanager RUNTIME DESTINATION /usr/bin)
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)