TDE educational programs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

124 lines
4.7 KiB

  1. ############################################
  2. # #
  3. # Improvements and feedbacks are welcome #
  4. # #
  5. # This file is released under GPL >= 3 #
  6. # #
  7. ############################################
  8. cmake_minimum_required( VERSION 2.8 )
  9. #### general package setup
  10. project( tdeedu )
  11. set( VERSION R14.1.0 )
  12. #### include essential cmake modules
  13. include( FindPkgConfig )
  14. include( CheckFunctionExists )
  15. include( CheckSymbolExists )
  16. include( CheckIncludeFile )
  17. include( CheckLibraryExists )
  18. include( CheckCSourceCompiles )
  19. include( CheckCXXSourceCompiles )
  20. #### include our cmake modules
  21. set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
  22. include( TDEMacros )
  23. enable_testing( )
  24. ##### setup install paths
  25. include( TDESetupPaths )
  26. tde_setup_paths( )
  27. ##### optional stuff
  28. option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
  29. option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
  30. option( WITH_ARTS "Enable aRts support" ${WITH_ALL_OPTIONS} )
  31. option( WITH_OCAML_SOLVER "Enable ocalm/facile solver (kalzium)" ${WITH_ALL_OPTIONS} )
  32. option( WITH_LIBUSB "Enable libusb support (kstars)" ${WITH_ALL_OPTIONS} )
  33. option( WITH_V4L "Enable video4linux support (kstars)" ${WITH_ALL_OPTIONS} )
  34. option( WITH_KIG_PYTHON_SCRIPTING "Enable python scripting in kig" ${WITH_ALL_OPTIONS} )
  35. ##### user requested modules
  36. option( BUILD_ALL "Build all" ON )
  37. option( BUILD_BLINKEN "Build blinken" ${BUILD_ALL} )
  38. option( BUILD_KALZIUM "Build kalzium" ${BUILD_ALL} )
  39. option( BUILD_KANAGRAM "Build kanagram" ${BUILD_ALL} )
  40. option( BUILD_KBRUCH "Build kbruch" ${BUILD_ALL} )
  41. option( BUILD_KEDUCA "Build keduca" ${BUILD_ALL} )
  42. option( BUILD_KGEOGRAPHY "Build kgeography" ${BUILD_ALL} )
  43. option( BUILD_KHANGMAN "Build khangman" ${BUILD_ALL} )
  44. option( BUILD_KIG "Build kig" ${BUILD_ALL} )
  45. option( BUILD_KITEN "Build kiten" ${BUILD_ALL} )
  46. option( BUILD_KLATIN "Build klatin" ${BUILD_ALL} )
  47. option( BUILD_KLETTRES "Build klettres" ${BUILD_ALL} )
  48. option( BUILD_KMPLOT "Build kmplot" ${BUILD_ALL} )
  49. option( BUILD_KPERCENTAGE "Build kpercentage" ${BUILD_ALL} )
  50. option( BUILD_KSTARS "Build kstars" ${BUILD_ALL} )
  51. option( BUILD_KTOUCH "Build ktouch" ${BUILD_ALL} )
  52. option( BUILD_KTURTLE "Build kturtle" ${BUILD_ALL} )
  53. option( BUILD_KVERBOS "Build kverbos" ${BUILD_ALL} )
  54. option( BUILD_KVOCTRAIN "Build kvoctrain" ${BUILD_ALL} )
  55. option( BUILD_KWORDQUIZ "Build kwordquiz" ${BUILD_ALL} )
  56. option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
  57. ##### configure checks
  58. include( ConfigureChecks.cmake )
  59. ###### global compiler settings
  60. add_definitions( -DHAVE_CONFIG_H )
  61. set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
  62. set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
  63. set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
  64. ##### directories
  65. add_subdirectory( applnk )
  66. add_subdirectory( libtdeedu )
  67. tde_conditional_add_subdirectory( BUILD_BLINKEN blinken )
  68. tde_conditional_add_subdirectory( BUILD_KALZIUM kalzium )
  69. tde_conditional_add_subdirectory( BUILD_KANAGRAM kanagram )
  70. tde_conditional_add_subdirectory( BUILD_KBRUCH kbruch )
  71. tde_conditional_add_subdirectory( BUILD_KEDUCA keduca )
  72. tde_conditional_add_subdirectory( BUILD_KGEOGRAPHY kgeography )
  73. tde_conditional_add_subdirectory( BUILD_KHANGMAN khangman )
  74. tde_conditional_add_subdirectory( BUILD_KIG kig )
  75. tde_conditional_add_subdirectory( BUILD_KITEN kiten )
  76. tde_conditional_add_subdirectory( BUILD_KLATIN klatin )
  77. tde_conditional_add_subdirectory( BUILD_KLETTRES klettres )
  78. tde_conditional_add_subdirectory( BUILD_KMPLOT kmplot )
  79. tde_conditional_add_subdirectory( BUILD_KPERCENTAGE kpercentage )
  80. tde_conditional_add_subdirectory( BUILD_KSTARS kstars )
  81. tde_conditional_add_subdirectory( BUILD_KTOUCH ktouch )
  82. tde_conditional_add_subdirectory( BUILD_KTURTLE kturtle )
  83. tde_conditional_add_subdirectory( BUILD_KVERBOS kverbos )
  84. tde_conditional_add_subdirectory( BUILD_KVOCTRAIN kvoctrain )
  85. tde_conditional_add_subdirectory( BUILD_KWORDQUIZ kwordquiz )
  86. tde_conditional_add_subdirectory( BUILD_DOC doc )
  87. ##### write configure files
  88. configure_file( config.h.cmake config.h @ONLY )