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.
core/powerman/CMakeLists.txt

28 lines
657 B
CMake

project(cutefish-powerman)
set(TARGET cutefish-powerman)
set(SOURCES
main.cpp
application.cpp
lidwatcher.cpp
cpu/cpuitem.cpp
cpu/cpumanagement.cpp
)
qt5_add_dbus_adaptor(DBUS_SOURCES
cpu/org.cutefish.CPUManagement.xml
cpu/cpumanagement.h CPUManagement)
set_source_files_properties(${DBUS_SOURCES} PROPERTIES SKIP_AUTOGEN ON)
add_executable(${TARGET} ${SOURCES} ${DBUS_SOURCES})
target_link_libraries(${TARGET}
Qt5::Core
Qt5::Gui
Qt5::Widgets
Qt5::Quick
Qt5::DBus
Qt5::X11Extras
)
install(TARGETS ${TARGET} DESTINATION ${CMAKE_INSTALL_BINDIR})