TYPE REQUIRED
)
- find_package(X11 REQUIRED)
+ find_package(X11)
set_package_properties(X11 PROPERTIES
DESCRIPTION "X11 libraries"
URL "http://www.x.org"
if(NOT X11_Xkbfile_FOUND)
message(FATAL_ERROR "The X11 keyboard layout library was not found. Required for building keyboard modules.")
endif()
- if(NOT X11_Xcomposite_FOUND)
- message(FATAL_ERROR "The X11 composite library was not found. Required for building the plasma tray and notifications widgets.")
- endif()
if(NOT X11_Xdamage_FOUND)
message(FATAL_ERROR "The X11 damaged region extension library was not found. Required for compositing support in KWin.")
endif()
option(KSCREENSAVER_SOUND_SUPPORT "Build with sound support" OFF)
-include_directories(${KDE4WORKSPACE_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR})
+include_directories(${KDE4WORKSPACE_INCLUDE_DIR})
+if(OPENGL_FOUND)
+ include_directories(${OPENGL_INCLUDE_DIR})
+endif()
add_subdirectory( data )
macro_optional_add_subdirectory( asciiquarium )
add_library(taskmanager SHARED ${taskmanager_LIB_SRCS})
target_link_libraries(taskmanager processcore ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${X11_LIBRARIES} kephal)
-if (X11_Xfixes_FOUND)
- target_link_libraries(taskmanager ${X11_Xfixes_LIB})
+if(X11_Xfixes_FOUND)
+ target_link_libraries(taskmanager ${X11_Xfixes_LIB})
endif (X11_Xfixes_FOUND)
-if (X11_Xrender_FOUND)
- target_link_libraries(taskmanager ${X11_Xrender_LIB})
+if(X11_Xrender_FOUND)
+ target_link_libraries(taskmanager ${X11_Xrender_LIB})
endif (X11_Xrender_FOUND)
-if (X11_Xcomposite_FOUND)
- target_link_libraries(taskmanager ${X11_Xcomposite_LIB})
+if(X11_Xcomposite_FOUND)
+ target_link_libraries(taskmanager ${X11_Xcomposite_LIB})
endif (X11_Xcomposite_FOUND)
set_target_properties(taskmanager PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
${X11_LIBRARIES}
${X11_Xrender_LIB}
${X11_Xfixes_LIB}
- ${X11_Xdamage_LIB}
- ${X11_Xcomposite_LIB}
)
+if(X11_Xdamage_FOUND)
+ target_link_libraries(plasma_applet_systemtray ${X11_Xdamage_LIB})
+endif()
+if(X11_Xcomposite_FOUND)
+ target_link_libraries(plasma_applet_systemtray ${X11_Xcomposite_LIB})
+endif()
+
install(TARGETS plasma_applet_systemtray DESTINATION ${PLUGIN_INSTALL_DIR})
install(DIRECTORY "package/" DESTINATION "${DATA_INSTALL_DIR}/${data_install_dir}")
install(FILES plasma-applet-systemtray.desktop DESTINATION ${SERVICES_INSTALL_DIR})