KKBSwitch – keyboard layout indicator
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.

94 lines
2.2KB

  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( kkbswitch )
  11. set( VERSION R14.1.0 )
  12. #### include essential cmake modules
  13. include( FindPkgConfig )
  14. include( CheckFunctionExists )
  15. include( CheckIncludeFile )
  16. include( CheckLibraryExists )
  17. include( CheckCSourceCompiles )
  18. include( CheckCXXSourceCompiles )
  19. #### include our cmake modules
  20. set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
  21. include( TDEMacros )
  22. ##### setup install paths
  23. include( TDESetupPaths )
  24. tde_setup_paths( )
  25. ##### optional stuff
  26. option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
  27. option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
  28. option( WITH_RU_UA_LAYOUT "Add Russian and Ukrainian keyboard" ${WITH_ALL_OPTIONS} )
  29. ##### user requested modules
  30. option( BUILD_ALL "Build all" ON )
  31. option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
  32. option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
  33. ##### configure checks
  34. include( ConfigureChecks.cmake )
  35. ###### global compiler settings
  36. add_definitions( -DHAVE_CONFIG_H )
  37. set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
  38. set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
  39. set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
  40. ##### directories
  41. add_subdirectory( ${PROJECT_NAME} )
  42. add_subdirectory( ${PROJECT_NAME}.upd )
  43. tde_conditional_add_subdirectory( BUILD_DOC doc )
  44. tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
  45. ##### man page
  46. INSTALL(
  47. FILES ${PROJECT_NAME}.1
  48. DESTINATION ${MAN_INSTALL_DIR}/man1
  49. COMPONENT doc
  50. )
  51. ##### icons
  52. tde_install_icons( ${PROJECT_NAME} )
  53. ##### write configure files
  54. configure_file( config.h.cmake config.h @ONLY )