KShutdown – graphical shutdown utility
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

CMakeLists.txt 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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( kshutdown )
  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. ##### setup install paths
  24. include( TDESetupPaths )
  25. tde_setup_paths( )
  26. ##### optional stuff
  27. option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
  28. option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
  29. ##### user requested modules
  30. option( BUILD_ALL "Build all" ON )
  31. option( BUILD_EXTRAS "Build extras" ${BUILD_ALL} )
  32. option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
  33. option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
  34. ##### configure checks
  35. include( ConfigureChecks.cmake )
  36. ###### global compiler settings
  37. add_definitions( -DHAVE_CONFIG_H )
  38. set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
  39. set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
  40. set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
  41. ##### directories
  42. add_subdirectory( ${PROJECT_NAME} )
  43. add_subdirectory( kshutdownlockout )
  44. add_subdirectory( karamba )
  45. add_subdirectory( sounds )
  46. add_subdirectory( pics )
  47. tde_conditional_add_subdirectory( BUILD_EXTRAS extras )
  48. tde_conditional_add_subdirectory( BUILD_DOC doc )
  49. tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
  50. ##### write configure files
  51. configure_file( config.h.cmake config.h @ONLY )