mirror of https://github.com/cutefishos/core
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1009 B
CMake
34 lines
1009 B
CMake
project(cutefish-session)
|
|
set(TARGET cutefish-session)
|
|
|
|
set(SOURCES
|
|
application.cpp
|
|
main.cpp
|
|
process.cpp
|
|
processmanager.cpp
|
|
networkproxymanager.cpp
|
|
|
|
powermanager/power.cpp
|
|
powermanager/powerproviders.cpp
|
|
)
|
|
|
|
qt6_add_dbus_adaptor(DBUS_SOURCES
|
|
com.cutefish.Session.xml
|
|
application.h Application
|
|
sessionadaptor SessionAdaptor)
|
|
set_source_files_properties(${DBUS_SOURCES} PROPERTIES SKIP_AUTOGEN ON)
|
|
|
|
add_executable(${TARGET} ${SOURCES} ${DBUS_SOURCES})
|
|
target_link_libraries(${TARGET}
|
|
Qt6::Core
|
|
Qt6::Gui
|
|
Qt6::Widgets
|
|
Qt6::Quick
|
|
Qt6::DBus
|
|
)
|
|
|
|
install(TARGETS ${TARGET} DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
install(PROGRAMS cutefish-kwin-wayland-session cutefish-wayland-session DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
install(FILES cutefish-applications.menu DESTINATION /etc/xdg/menus/)
|
|
install(FILES cutefish-wayland.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/wayland-sessions/)
|