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.
24 lines
653 B
CMake
24 lines
653 B
CMake
project(cutefish-shutdown)
|
|
|
|
add_executable(cutefish-shutdown
|
|
main.cpp
|
|
actions.cpp
|
|
qml.qrc
|
|
)
|
|
|
|
target_link_libraries(cutefish-shutdown
|
|
Qt5::Core
|
|
Qt5::Widgets
|
|
Qt5::Quick
|
|
Qt5::QuickControls2
|
|
Qt5::DBus
|
|
)
|
|
|
|
file(GLOB TS_FILES translations/*.ts)
|
|
qt5_create_translation(QM_FILES ${TS_FILES})
|
|
add_custom_target(shutdown-translations DEPENDS ${QM_FILES} SOURCES ${TS_FILES})
|
|
add_dependencies(cutefish-shutdown shutdown-translations)
|
|
install(FILES ${QM_FILES} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/cutefish-shutdown/translations)
|
|
|
|
install(TARGETS cutefish-shutdown RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|