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.
 
 
 
 
 

61 lines
1.7 KiB

  1. ###########################################
  2. # #
  3. # Improvements and feedback are welcome #
  4. # #
  5. # This file is released under GPL >= 3 #
  6. # #
  7. ###########################################
  8. # required stuff
  9. find_package( TQt )
  10. find_package( TDE )
  11. tde_setup_architecture_flags( )
  12. include(TestBigEndian)
  13. test_big_endian(WORDS_BIGENDIAN)
  14. tde_setup_largefiles( )
  15. ##### check for gcc visibility support
  16. if( WITH_GCC_VISIBILITY )
  17. tde_setup_gcc_visibility( )
  18. endif( WITH_GCC_VISIBILITY )
  19. #### check for headers
  20. if( WITH_NATIVE_GNU_BARCODE )
  21. check_include_file( "barcode.h" HAVE_NATIVE_GNU_BARCODE )
  22. if( HAVE_NATIVE_GNU_BARCODE )
  23. set( _ENABLE_NATIVE_GNU_BARCODE 1 )
  24. else()
  25. tde_message_fatal( "Barcode is requested, but GNU Barcode header was not found on your system" )
  26. endif()
  27. endif( WITH_NATIVE_GNU_BARCODE )
  28. if( WITH_JAVASCRIPT )
  29. tde_save( CMAKE_REQUIRED_INCLUDES )
  30. list( APPEND CMAKE_REQUIRED_INCLUDES ${TQT_INCLUDE_DIRS} ${TDE_INCLUDE_DIR} )
  31. check_include_file_cxx( "kjs/interpreter.h" HAVE_JAVASCRIPT )
  32. if( HAVE_JAVASCRIPT )
  33. set( USE_JAVASCRIPT 1 )
  34. set( NO_KJS_EMBED 1 )
  35. else()
  36. tde_message_fatal( "Javascript interpreter is requested, but tdelibs Javascript header (kjs) was not found on your system" )
  37. endif( HAVE_JAVASCRIPT )
  38. tde_restore( CMAKE_REQUIRED_INCLUDES )
  39. else()
  40. set( USE_JAVASCRIPT false )
  41. endif( WITH_JAVASCRIPT )
  42. #### check for pcre
  43. pkg_search_module( PCRE libpcre )
  44. if( NOT PCRE_FOUND )
  45. tde_message_fatal( "pcre (2.8.x) is required but was not found on your system." )
  46. endif( NOT PCRE_FOUND )