YaKuake – Quake-style terminal emulator
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.
 
 
 

78 lines
1.8 KiB

  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( yakuake )
  11. set( VERSION R14.1.0 )
  12. #### include essential cmake modules
  13. include( FindPkgConfig )
  14. include( CheckIncludeFile )
  15. include( CheckLibraryExists )
  16. include( CheckCSourceCompiles )
  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. ##### optional stuff
  25. option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
  26. option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
  27. ##### user requested modules
  28. option( BUILD_ALL "Build all" ON )
  29. option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
  30. option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
  31. ##### configure checks
  32. include( ConfigureChecks.cmake )
  33. ###### global compiler settings
  34. add_definitions( -DHAVE_CONFIG_H )
  35. set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
  36. set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
  37. set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
  38. ##### directories
  39. add_subdirectory( yakuake )
  40. tde_conditional_add_subdirectory( BUILD_DOC doc )
  41. tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
  42. ##### write configure files
  43. configure_file( config.h.cmake config.h @ONLY )