tde-style-qtcurve
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 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. #################################################
  2. #
  3. # (C) 2011 Timothy Pearson
  4. # kb9vqf (AT) pearsoncomputing.net
  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. ##### cpack configuration #######################
  13. set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
  14. set(CPACK_GENERATOR "DEB;RPM;TGZ")
  15. set(DEBIAN_PACKAGE_DESCRIPTION "QtCurve for TQt/TDE")
  16. set(DEBIAN_PACKAGE_SECTION "tde")
  17. set(CPACK_SOURCE_GENERATOR "TBZ2")
  18. set(CPACK_PACKAGE_VERSION_MAJOR "1")
  19. set(CPACK_PACKAGE_VERSION_MINOR "6")
  20. set(CPACK_PACKAGE_VERSION_PATCH "2")
  21. set(CPACK_PACKAGE_CONTACT "Craig Drummond <craig.p.drummond@gmail.com>")
  22. set(QTCURVE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}")
  23. set(QTCURVE_VERSION_FULL "${QTCURVE_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}")
  24. set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${QTCURVE_VERSION_FULL}")
  25. set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${QTCURVE_VERSION_FULL}")
  26. include(CPack)
  27. ##### general package setup #####################
  28. project( tde-style-qtcurve )
  29. ##### include essential cmake modules ###########
  30. include( CheckCXXSourceCompiles )
  31. include( CheckFunctionExists )
  32. include( CheckIncludeFileCXX )
  33. include( CheckLibraryExists )
  34. include( CheckStructHasMember )
  35. include( CheckSymbolExists )
  36. include( CheckTypeSize )
  37. include( FindPkgConfig )
  38. ##### include our cmake modules #################
  39. set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
  40. include( TDEMacros )
  41. ##### setup install paths #######################
  42. include( TDESetupPaths )
  43. tde_setup_paths( )
  44. ##### user requested modules ####################
  45. option( BUILD_ALL "Build all" OFF )
  46. option( BUILD_CONFIG_MODULE "Build TDE configuration module" ${BUILD_ALL} )
  47. option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
  48. ##### configure checks ##########################
  49. include( ConfigureChecks.cmake )
  50. ###### global compiler settings #################
  51. add_definitions(
  52. -DHAVE_CONFIG_H
  53. )
  54. set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
  55. set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
  56. set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
  57. ##### source directories ########################
  58. add_subdirectory( style )
  59. add_subdirectory( themes )
  60. add_subdirectory( colors )
  61. tde_conditional_add_subdirectory( BUILD_CONFIG_MODULE config )
  62. tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
  63. ##### write configure files #####################
  64. configure_file( config.h.cmake config.h @ONLY )
  65. if (TQTC_ENABLE_PARENTLESS_DIALOG_FIX_SUPPORT)
  66. message("**************************************************************\n"
  67. "Warning: You have enabled support for the 'fix parentless dialogs'\n"
  68. " option. This is known to BREAK some applications. Please\n"
  69. " DO NOT report errors to application authors when you have\n"
  70. " this enabled. Please reconsider DISABLING this option.\n"
  71. "**************************************************************\n")
  72. endif (TQTC_ENABLE_PARENTLESS_DIALOG_FIX_SUPPORT)