KBFX – an alternative to T-Menu
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.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. ##### general package setup #####################
  13. project( kbfx )
  14. ##### include essential cmake modules ###########
  15. include( CheckCXXSourceCompiles )
  16. include( CheckFunctionExists )
  17. include( CheckIncludeFileCXX )
  18. include( CheckLibraryExists )
  19. include( CheckStructHasMember )
  20. include( CheckSymbolExists )
  21. include( CheckTypeSize )
  22. include( FindPkgConfig )
  23. ##### include our cmake modules #################
  24. set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
  25. include( TDEMacros )
  26. ##### setup install paths #######################
  27. include( TDESetupPaths )
  28. tde_setup_paths( )
  29. ##### set version numbers #######################
  30. # For versions that are stable set to 1, else to 0
  31. SET(APPLICATION_STABLE 1)
  32. SET(LIB_MAJOR 4)
  33. SET(LIB_MINOR 9)
  34. SET(LIB_RELEASE 3)
  35. SET(LIB_SUB_RELEASE 1)
  36. SET(APPLICATION_INTERNAL_VERSION "20070516")
  37. SET(APPLICATION_DATE "2007-05-16")
  38. SET(APPLICATION_NAME "${PROJECT_NAME}")
  39. SET(APPLICATION_MAIN_VERSION "0.${LIB_MAJOR}.${LIB_MINOR}.${LIB_RELEASE}")
  40. IF (APPLICATION_STABLE)
  41. SET(APPLICATION_STABLE_RELEASE ".${LIB_SUB_RELEASE}")
  42. SET(APPLICATION_VERSION "${APPLICATION_MAIN_VERSION}.${LIB_SUB_RELEASE}")
  43. SET(GENTOO_VERSION "${APPLICATION_MAIN_VERSION}.${LIB_SUB_RELEASE}")
  44. ELSE (APPLICATION_APPLICATION_STABLE "")
  45. SET(STABLE_RELEASE)
  46. SET(APPLICATION_VERSION "${APPLICATION_MAIN_VERSION}-${LIB_SUB_RELEASE}")
  47. SET(GENTOO_VERSION "${APPLICATION_MAIN_VERSION}_pre${LIB_SUB_RELEASE}")
  48. ENDIF (APPLICATION_STABLE)
  49. SET(VERSION ${APPLICATION_VERSION})
  50. SET(STRIGI_VERSION "0.3.11")
  51. SET(GENTOO_KEYWORDS "x86 ~ppc ~amd64")
  52. ##### user requested modules ####################
  53. option( BUILD_ALL "Build all" OFF )
  54. option( BUILD_DOC "Build doc" ${BUILD_ALL} )
  55. option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
  56. option( USE_STRIGI "Enable use of Strigi search support (disabled)" OFF )
  57. option( USE_MENUDRAKE "Use 'menudrake' instead of 'kmenuedit' in Mandriva (auto)" ON )
  58. ##### configure checks ##########################
  59. include( ConfigureChecks.cmake )
  60. ###### global compiler settings #################
  61. add_definitions(
  62. -DHAVE_CONFIG_H
  63. )
  64. set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS} -DTQT_THREAD_SUPPORT" )
  65. set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
  66. set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
  67. ##### source directories ########################
  68. add_subdirectory( kbfxlib )
  69. add_subdirectory( src )
  70. add_subdirectory( configdialog )
  71. add_subdirectory( skin )
  72. add_subdirectory( images )
  73. add_subdirectory( plugins )
  74. tde_conditional_add_subdirectory( BUILD_DOC doc )
  75. tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
  76. SET(DIST_INCLUDE "kbfx-9999.ebuild kbfx.spec kbfx-${GENTOO_VERSION}.ebuild strigi-${STRIGI_VERSION}.ebuild")
  77. SET(DIST_EXCLUDE "Helperstuff")
  78. ##### write configure files #####################
  79. configure_file(config.h.in config.h @ONLY)
  80. configure_file(kbfx.spec.in kbfx.spec @ONLY)
  81. configure_file(kbfx.ebuild.in kbfx-${GENTOO_VERSION}.ebuild @ONLY)
  82. configure_file(strigi.ebuild.in strigi-${STRIGI_VERSION}.ebuild @ONLY)
  83. configure_file(kbfx-svn.ebuild.in kbfx-9999.ebuild @ONLY)