Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Polish CMakeList.txt files

  • Loading branch information...
commit 0e47dde8c5616e3c1880833e487e94b3c15bf5d3 1 parent 6005037
@simgunz authored
View
4 CMakeLists.txt
@@ -1,8 +1,8 @@
project(redshift-plasmoid)
-find_package(KDE4 REQUIRED QT4 REQUIRED)
+find_package(KDE4 REQUIRED)
include(KDE4Defaults)
-include_directories(${QT_INCLUDE} ${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR})
+include_directories(${KDE4_INCLUDES})
add_subdirectory(dataengine)
add_subdirectory(applet)
View
9 applet/CMakeLists.txt
@@ -1,11 +1,14 @@
-set(redshiftapplet_SRCS redshiftapplet.cpp redshiftosdwidget.cpp)
+set(redshiftapplet_SRCS
+ redshiftapplet.cpp
+ redshiftosdwidget.cpp
+)
+
kde4_add_ui_files(redshiftapplet_SRCS redshift.ui)
kde4_add_ui_files(redshiftapplet_SRCS activities.ui)
kde4_add_kcfg_files(redshiftapplet_SRCS ../redshiftsettings.kcfgc)
-
kde4_add_plugin(plasma_applet_redshift ${redshiftapplet_SRCS})
-target_link_libraries(plasma_applet_redshift ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} ${KDE4_KCMUTILS_LIBRARY})
+target_link_libraries(plasma_applet_redshift ${KDE4_PLASMA_LIBS})
install(TARGETS plasma_applet_redshift DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES plasma-applet-redshift.desktop DESTINATION ${SERVICES_INSTALL_DIR})
View
4 dataengine/CMakeLists.txt
@@ -5,9 +5,11 @@ set(redshift_engine_SRCS
redshiftcontroller.cpp
redshiftcontainer.cpp
)
+
kde4_add_kcfg_files(redshift_engine_SRCS ../redshiftsettings.kcfgc)
kde4_add_plugin(plasma_engine_redshift ${redshift_engine_SRCS})
-target_link_libraries(plasma_engine_redshift ${KDE4_KDECORE_LIBS} ${KDE4_PLASMA_LIBS} kworkspace)
+
+target_link_libraries(plasma_engine_redshift ${KDE4_PLASMA_LIBS})
install(TARGETS plasma_engine_redshift DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES plasma-dataengine-redshift.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
View
3  redshiftAutostartEnabler/CMakeLists.txt
@@ -2,7 +2,10 @@ set(redshiftautostart_SRCS
redshiftautostart.cpp
redshiftenabler.cpp
)
+
kde4_add_executable(redshiftautostart ${redshiftautostart_SRCS})
+
target_link_libraries(redshiftautostart ${KDE4_KDECORE_LIBS} )
+
install(TARGETS redshiftautostart DESTINATION ${BIN_INSTALL_DIR})
install(FILES RedshiftAutostart.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/autostart)
Please sign in to comment.
Something went wrong with that request. Please try again.