dock/CMakeLists.txt

64 lines
1.7 KiB
Text
Raw Normal View History

2021-03-15 20:17:11 -07:00
cmake_minimum_required(VERSION 3.5)
2021-03-16 02:23:27 -07:00
set(PROJECT_NAME cutefish-dock)
2021-03-15 20:17:11 -07:00
project(${PROJECT_NAME})
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)
2021-06-14 06:47:42 -07:00
find_package(Qt5 CONFIG REQUIRED Widgets DBus X11Extras Concurrent LinguistTools QuickControls2)
2021-03-22 02:10:08 -07:00
2021-03-15 20:17:11 -07:00
find_package(KF5WindowSystem REQUIRED)
set(SRCS
src/applicationitem.h
src/applicationmodel.cpp
src/docksettings.cpp
src/iconthemeimageprovider.cpp
src/main.cpp
src/mainwindow.cpp
src/systemappmonitor.cpp
src/systemappitem.cpp
src/processprovider.cpp
src/trashmanager.cpp
src/utils.cpp
src/xwindowinterface.cpp
2021-07-21 01:49:49 -07:00
src/activity.cpp
2021-03-15 20:17:11 -07:00
src/fakewindow.cpp
)
set(RESOURCES
resources.qrc
)
2021-08-29 04:46:37 -07:00
qt5_add_dbus_adaptor(DBUS_SOURCES
2021-09-15 00:45:56 -07:00
src/com.cutefish.Dock.xml
2021-08-29 04:46:37 -07:00
src/mainwindow.h MainWindow)
set_source_files_properties(${DBUS_SOURCES} PROPERTIES SKIP_AUTOGEN ON)
add_executable(${PROJECT_NAME} ${SRCS} ${DBUS_SOURCES} ${RESOURCES})
2021-03-22 02:10:08 -07:00
target_link_libraries(${PROJECT_NAME} PRIVATE
2021-03-15 20:17:11 -07:00
Qt5::Core
Qt5::Widgets
Qt5::Quick
Qt5::QuickControls2
Qt5::X11Extras
Qt5::Concurrent
Qt5::DBus
KF5::WindowSystem
)
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(${PROJECT_NAME} translations)
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
2021-03-15 20:17:11 -07:00
install(FILES ${QM_FILES} DESTINATION /usr/share/${PROJECT_NAME}/translations)
2021-10-03 05:13:00 -07:00
install(FILES cutefish-dock-list.conf DESTINATION /etc)