tdepowersave
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.

CMakeLists.txt 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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( tdepowersave )
  14. ##### include essential cmake modules ###########
  15. include( FindPkgConfig )
  16. include( CheckSymbolExists )
  17. include( CheckCXXSourceCompiles )
  18. ##### include our cmake modules #################
  19. set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
  20. include( TDEMacros )
  21. ##### setup install paths #######################
  22. include( TDESetupPaths )
  23. tde_setup_paths( )
  24. ##### user requested modules ####################
  25. option( BUILD_ALL "Build all" OFF )
  26. option( BUILD_DOC "Build doc" ${BUILD_ALL} )
  27. option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
  28. ##### configure checks ##########################
  29. include( ConfigureChecks.cmake )
  30. ###### global compiler settings #################
  31. add_definitions(
  32. -DHAVE_CONFIG_H
  33. )
  34. set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
  35. set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
  36. set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
  37. ##### source directories ########################
  38. add_subdirectory( src )
  39. tde_conditional_add_subdirectory( BUILD_DOC doc )
  40. tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
  41. ##### write configure files #####################
  42. configure_file( config.h.cmake config.h @ONLY )