redshift-plasmoid: build fix

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-03-24 18:30:54 +02:00
parent ebbf2d8876
commit 1755951fd3
6 changed files with 11 additions and 12 deletions

View file

@ -1,2 +1 @@
kde4_install_icons(${ICON_INSTALL_DIR}) kde4_install_icons(${KDE4_ICON_INSTALL_DIR})
kde4_update_iconcache()

View file

@ -25,7 +25,7 @@ ELSE(NOT GETTEXT_MSGFMT_EXECUTABLE)
ADD_CUSTOM_COMMAND(TARGET translations ADD_CUSTOM_COMMAND(TARGET translations
COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} --check -o ${_gmoFile} ${_poFile} COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} --check -o ${_gmoFile} ${_poFile}
DEPENDS ${_poFile}) DEPENDS ${_poFile})
INSTALL(FILES ${_gmoFile} DESTINATION ${LOCALE_INSTALL_DIR}/${_langCode}/LC_MESSAGES/ RENAME ${catalogname}.mo) INSTALL(FILES ${_gmoFile} DESTINATION ${KDE4_LOCALE_INSTALL_DIR}/${_langCode}/LC_MESSAGES/ RENAME ${catalogname}.mo)
ENDIF( _langCode ) ENDIF( _langCode )
ENDFOREACH(_poFile ${PO_FILES}) ENDFOREACH(_poFile ${PO_FILES})

View file

@ -2,4 +2,4 @@ add_subdirectory(dataengine)
add_subdirectory(applet) add_subdirectory(applet)
add_subdirectory(redshiftAutostartEnabler) add_subdirectory(redshiftAutostartEnabler)
install(FILES redshift.kcfg DESTINATION ${KCFG_INSTALL_DIR}) install(FILES redshift.kcfg DESTINATION ${KDE4_KCFG_INSTALL_DIR})

View file

@ -1,13 +1,13 @@
set(redshiftapplet_SRCS set(redshiftapplet_SRCS
redshiftapplet.cpp redshiftapplet.cpp
redshiftosdwidget.cpp redshiftosdwidget.cpp
redshift.ui
) )
kde4_add_ui_files(redshiftapplet_SRCS redshift.ui)
kde4_add_kcfg_files(redshiftapplet_SRCS ../redshiftsettings.kcfgc) kde4_add_kcfg_files(redshiftapplet_SRCS ../redshiftsettings.kcfgc)
kde4_add_plugin(plasma_applet_redshift ${redshiftapplet_SRCS}) kde4_add_plugin(plasma_applet_redshift ${redshiftapplet_SRCS})
target_link_libraries(plasma_applet_redshift ${KDE4_PLASMA_LIBS}) target_link_libraries(plasma_applet_redshift ${KDE4_PLASMA_LIBS})
install(TARGETS plasma_applet_redshift DESTINATION ${PLUGIN_INSTALL_DIR}) install(TARGETS plasma_applet_redshift DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES plasma-applet-redshift.desktop DESTINATION ${SERVICES_INSTALL_DIR}) install(FILES plasma-applet-redshift.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})

View file

@ -11,7 +11,7 @@ kde4_add_plugin(plasma_engine_redshift ${redshift_engine_SRCS})
target_link_libraries(plasma_engine_redshift ${KDE4_PLASMA_LIBS}) target_link_libraries(plasma_engine_redshift ${KDE4_PLASMA_LIBS})
install(TARGETS plasma_engine_redshift DESTINATION ${PLUGIN_INSTALL_DIR}) install(TARGETS plasma_engine_redshift DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES plasma-dataengine-redshift.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) install(FILES plasma-dataengine-redshift.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR} )
install(FILES redshift.operations DESTINATION ${DATA_INSTALL_DIR}/plasma/services) install(FILES redshift.operations DESTINATION ${KDE4_DATA_INSTALL_DIR}/plasma/services)

View file

@ -3,9 +3,9 @@ set(redshiftautostart_SRCS
redshiftenabler.cpp redshiftenabler.cpp
) )
kde4_add_executable(redshiftautostart ${redshiftautostart_SRCS}) add_executable(redshiftautostart ${redshiftautostart_SRCS})
target_link_libraries(redshiftautostart ${KDE4_KDECORE_LIBS} ) target_link_libraries(redshiftautostart ${KDE4_KDECORE_LIBS} )
install(TARGETS redshiftautostart DESTINATION ${BIN_INSTALL_DIR}) install(TARGETS redshiftautostart DESTINATION ${KDE4_BIN_INSTALL_DIR})
install(FILES RedshiftAutostart.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/autostart) install(FILES RedshiftAutostart.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/autostart)