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.
28 lines
631 B
CMake
28 lines
631 B
CMake
project(cutefish-screen-brightness)
|
|
set(PROJECT_NAME cutefish-screen-brightness)
|
|
|
|
set(SRCS
|
|
main.cpp
|
|
brightnesshelper.h
|
|
brightnesshelper.cpp
|
|
)
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
${SRCS}
|
|
)
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
Qt5::Core
|
|
Qt5::Gui
|
|
Qt5::Widgets
|
|
)
|
|
|
|
configure_file(
|
|
com.cutefish.brightness.pkexec.policy.in
|
|
com.cutefish.brightness.pkexec.policy
|
|
@ONLY
|
|
)
|
|
|
|
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/com.cutefish.brightness.pkexec.policy DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/polkit-1/actions/)
|