Permalink
Browse files

Polish CMakeList.txt files

  • Loading branch information...
1 parent 6005037 commit 0e47dde8c5616e3c1880833e487e94b3c15bf5d3 @simgunz committed Mar 17, 2013
Showing with 14 additions and 6 deletions.
  1. +2 −2 CMakeLists.txt
  2. +6 −3 applet/CMakeLists.txt
  3. +3 −1 dataengine/CMakeLists.txt
  4. +3 −0 redshiftAutostartEnabler/CMakeLists.txt
View
@@ -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
@@ -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})
@@ -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} )
@@ -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)

0 comments on commit 0e47dde

Please sign in to comment.