kpowersave
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.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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( kpowersave )
  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. ##### configure checks ##########################
  25. include( ConfigureChecks.cmake )
  26. ###### global compiler settings #################
  27. add_definitions(
  28. -DHAVE_CONFIG_H
  29. )
  30. set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
  31. set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
  32. set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
  33. ##### source directories ########################
  34. add_subdirectory( src )
  35. ##### write configure files #####################
  36. configure_file( config.h.cmake config.h @ONLY )