CMakeLists.txt 2.27 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12

add_subdirectory( usbview )
add_subdirectory( infosummary )
add_subdirectory( memory )
add_subdirectory( devinfo )
add_subdirectory( info )
add_subdirectory( nics )

if(NOT WIN32)
  add_subdirectory( samba )

  macro_optional_find_package(OpenGL)
13 14 15 16 17
  set_package_properties(OpenGL PROPERTIES DESCRIPTION "API for developing portable, interactive 2D and 3D graphics applications"
                         URL "http://mesa3d.sourceforge.net"
                         TYPE OPTIONAL
                         PURPOSE "View OpenGL details in kinfocenter."
                        )
18

Jammy Zhou's avatar
Jammy Zhou committed
19
  macro_optional_find_package(OpenGLES)
20 21 22 23 24
  set_package_properties(OpenGLES PROPERTIES DESCRIPTION "Support for OpenGL ES2.0 graphics library"
                         URL "http://www.khronos.org/opengles"
                         TYPE OPTIONAL
                         PURPOSE "View OpenGL ES2.0 details in kinfocenter."
                        )
Jammy Zhou's avatar
Jammy Zhou committed
25 26 27 28 29

  if(OPENGL_FOUND AND OPENGL_GLU_FOUND AND NOT KWIN_BUILD_WITH_OPENGLES)
      set( KCM_ENABLE_OPENGL 1 )
  endif(OPENGL_FOUND AND OPENGL_GLU_FOUND AND NOT KWIN_BUILD_WITH_OPENGLES)

30
  if(OPENGLES_FOUND AND KWIN_BUILD_WITH_OPENGLES)
Jammy Zhou's avatar
Jammy Zhou committed
31
      set( KCM_ENABLE_OPENGLES 1 )
32
  endif(OPENGLES_FOUND AND KWIN_BUILD_WITH_OPENGLES)
Jammy Zhou's avatar
Jammy Zhou committed
33 34

  if(KCM_ENABLE_OPENGL OR KCM_ENABLE_OPENGLES)
35
      add_subdirectory( opengl )
Jammy Zhou's avatar
Jammy Zhou committed
36 37 38
  else(KCM_ENABLE_OPENGL OR KCM_ENABLE_OPENGLES)
      MESSAGE(STATUS "OpenGL/ES2.0 information module has been disabled.")
  endif(KCM_ENABLE_OPENGL OR KCM_ENABLE_OPENGLES)
39 40 41


macro_optional_find_package(PCIUTILS)
42 43 44 45 46
set_package_properties(PCIUTILS PROPERTIES DESCRIPTION "PciUtils is a library for direct access to PCI slots"
                       URL "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml"
                       TYPE OPTIONAL
                       PURPOSE "View PCI details in kinfocenter."
                      )
47 48 49 50 51 52 53

if(NOT APPLE)
    add_subdirectory( pci )
endif(NOT APPLE)
endif(NOT WIN32)

macro_optional_find_package(RAW1394)
54 55 56 57 58
set_package_properties(RAW1394 PROPERTIES DESCRIPTION "library for direct access to IEEE 1394 bus"
                       URL "http://www.linux1394.org/"
                       TYPE OPTIONAL
                       PURPOSE "View FireWire devices in kinfocenter."
                      )
59 60 61 62

if(RAW1394_FOUND)
   add_subdirectory( view1394 )
endif(RAW1394_FOUND)