KBarcode – barcode and label printing application
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.
 
 
 
 
 

83 lines
2.1 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( kbarcode )
  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( CheckIncludeFileCXX )
  18. include( CheckLibraryExists )
  19. include( CheckCSourceCompiles )
  20. include( CheckCXXSourceCompiles )
  21. #### include our cmake modules
  22. set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
  23. include( TDEMacros )
  24. ##### setup install paths
  25. include( TDESetupPaths )
  26. tde_setup_paths( )
  27. ##### optional stuff
  28. option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
  29. option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
  30. option( WITH_NATIVE_GNU_BARCODE "Enable GNU Barcode" OFF )
  31. option( WITH_JAVASCRIPT "Enable Javascript" ${WITH_ALL_OPTIONS} )
  32. ##### user requested modules
  33. option( BUILD_ALL "Build all" ON )
  34. option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
  35. option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
  36. ##### configure checks
  37. include( ConfigureChecks.cmake )
  38. ###### global compiler settings
  39. add_definitions( -DHAVE_CONFIG_H )
  40. set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
  41. set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
  42. set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
  43. ##### directories
  44. add_subdirectory( ${PROJECT_NAME} )
  45. add_subdirectory( fileplugin )
  46. tde_conditional_add_subdirectory( BUILD_DOC doc )
  47. tde_conditional_add_subdirectory( BUILD_TRANSLATIONS translations )
  48. ##### write configure files
  49. configure_file( config.h.cmake config.h @ONLY )