TDE web development 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.
 
 
 
 
 
 

86 lines
1.9 KiB

  1. #################################################
  2. #
  3. # (C) 2010-2011 Serghei Amelian
  4. # serghei (DOT) amelian (AT) gmail.com
  5. #
  6. # Improvements and feedback are welcome
  7. #
  8. # This file is released under GPL >= 2
  9. #
  10. #################################################
  11. cmake_minimum_required( VERSION 2.8 )
  12. ##### general package setup #####################
  13. project( tdewebdev )
  14. ##### include essential cmake modules ###########
  15. include( CheckCXXSourceCompiles )
  16. include( CheckFunctionExists )
  17. include( CheckIncludeFileCXX )
  18. include( CheckStructHasMember )
  19. include( CheckSymbolExists )
  20. include( CheckTypeSize )
  21. include( FindPkgConfig )
  22. ##### include our cmake modules #################
  23. set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
  24. include( TDEMacros )
  25. ##### setup install paths #######################
  26. include( TDESetupPaths )
  27. tde_setup_paths( )
  28. ##### optional stuff ############################
  29. # option( WITH_LIBVISUAL "Enable libvisual support" OFF )
  30. # option( WITH_KONQSIDEBAR "Enable konqsidebar plugin" OFF )
  31. # option( WITH_XINE "Enable xine-engine support" OFF )
  32. # option( WITH_LIBGPOD "Enable iPod support from libgpod" OFF )
  33. ##### user requested modules ####################
  34. option( BUILD_ALL "Build all" OFF )
  35. option( BUILD_QUANTA "Build quanta" ${BUILD_ALL} )
  36. ##### configure checks ##########################
  37. include( ConfigureChecks.cmake )
  38. ###### global compiler settings #################
  39. add_definitions(
  40. -DHAVE_CONFIG_H
  41. ${TQT_CFLAGS_OTHER}
  42. )
  43. set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include tqt.h" )
  44. set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
  45. set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
  46. ##### source directories ########################
  47. if( BUILD_QUANTA )
  48. add_subdirectory( lib )
  49. endif( )
  50. tde_conditional_add_subdirectory( BUILD_QUANTA quanta )
  51. ##### write configure files #####################
  52. configure_file( config.h.cmake config.h @ONLY )