Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / apps / kinfocenter / info / CMakeLists.txt
blobd60cbbedaff24dd58078e218be8c94aae02ac0bc
1 # TODO: HAVE_COREAUDIO (for OSX)
2 # TODO: HAVE_LIBDEVINFO_H (for Solaris 7 and later)
3 #   to be set if both -ldevinfo and libdevinfo.h exist
5 check_include_files(devinfo.h HAVE_DEVINFO_H)       # info_fbsd.cpp
6 check_include_files(fstab.h HAVE_FSTAB_H)           # info_linux.cpp
7 check_include_files(linux/raw.h HAVE_LINUX_RAW_H)   # info_linux.cpp
8 check_include_files(mntent.h HAVE_MNTENT_H)         # info_linux.cpp
9 check_include_files(sys/ioctl.h HAVE_SYS_IOCTL_H)   # info_linux.cpp
10 check_include_files(sys/raw.h HAVE_SYS_RAW_H)       # info_linux.cpp
11 check_include_files(Alib.h HAVE_ALIB_H)             # info_hpux.cpp
13 configure_file (config-infocenter.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-infocenter.h )
15 if(OPENGL_FOUND AND OPENGL_GLU_FOUND)
16    ADD_DEFINITIONS(-DINFO_OPENGL_AVAILABLE ) # added manually
17    include_directories( ${OPENGL_INCLUDE_DIR} ${OPENGL_GLU_INCLUDE_DIR} )
18 else(OPENGL_FOUND AND OPENGL_GLU_FOUND)
19    MESSAGE(STATUS "OpenGL information module has been disabled.")
20 endif(OPENGL_FOUND AND OPENGL_GLU_FOUND)
21 ########### next target ###############
23 set(kcm_info_PART_SRCS main.cpp memory.cpp opengl.cpp )
26 kde4_add_plugin(kcm_info ${kcm_info_PART_SRCS})
29 target_link_libraries(kcm_info  ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${QT_QT3SUPPORT_LIBRARY} ${X11_X11_LIB})
30 if(OPENGL_FOUND AND OPENGL_GLU_FOUND)
31   target_link_libraries(kcm_info ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY})
32 endif(OPENGL_FOUND AND OPENGL_GLU_FOUND)
34 install(TARGETS kcm_info  DESTINATION ${PLUGIN_INSTALL_DIR} )
37 ########### install files ###############
39 install( FILES memory.desktop processor.desktop dma.desktop     interrupts.desktop ioports.desktop opengl.desktop pci.desktop sound.desktop     devices.desktop scsi.desktop partitions.desktop xserver.desktop  DESTINATION  ${SERVICES_INSTALL_DIR} )