TDE graphics utilities
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 Serghei Amelian
  4. # serghei (DOT) amelian (AT) gmail.com
  5. #
  6. # Improvements and feedback are welcome
  7. #
  8. #################################################
  9. cmake_minimum_required( VERSION 2.6 )
  10. ##### general package setup #####################
  11. project( kdegraphics )
  12. ##### include essential cmake modules ###########
  13. include( FindPkgConfig )
  14. include( CheckIncludeFile )
  15. include( CheckTypeSize )
  16. # include( CheckCSourceRuns )
  17. include( CheckCSourceCompiles )
  18. include( CheckCXXSourceCompiles )
  19. include( CheckLibraryExists )
  20. # include( CheckFunctionExists )
  21. # include( CheckStructHasMember )
  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_ALSA "Enable ALSA support" ON )
  30. ##### user requested modules ####################
  31. option( BUILD_ALL "Build all" OFF )
  32. option( BUILD_KVIEW "Build kview" ${BUILD_ALL} )
  33. ##### configure checks ##########################
  34. include( ConfigureChecks.cmake )
  35. ###### global compiler settings #################
  36. add_definitions(
  37. -DHAVE_CONFIG_H
  38. ${TQT_CFLAGS_OTHER}
  39. )
  40. set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include tqt.h" )
  41. set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
  42. set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
  43. ##### activate dependencies #####################
  44. # if( BUILD_LIBKCAL OR BUILD_LIBKDEPIM OR BUILD_LIBKPIMIDENTITIES OR BUILD_KIOSLAVES OR BUILD_KMAIL )
  45. # add_subdirectory( libemailfunctions )
  46. # endif()
  47. ##### kdemultimedia directories ########################
  48. tde_conditional_add_subdirectory( BUILD_KVIEW kview )
  49. ##### write configure files #####################
  50. configure_file( config.h.cmake config.h @ONLY )