kgtk-qt3 – TDE dialogs in GTK 2.x applications
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 2.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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( kgtk )
  14. ##### set up cpack ##############################
  15. set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
  16. set(CPACK_GENERATOR "TBZ2")
  17. set(CPACK_SOURCE_GENERATOR "TBZ2")
  18. set(CPACK_PACKAGE_VERSION_MAJOR "0")
  19. set(CPACK_PACKAGE_VERSION_MINOR "10")
  20. set(CPACK_PACKAGE_VERSION_PATCH "1")
  21. set(KGTK_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}")
  22. set(KGTK_VERSION_FULL "${KGTK_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}")
  23. set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${KGTK_VERSION_FULL}")
  24. include(CPack)
  25. ##### include essential cmake modules ###########
  26. include( CheckCXXSourceCompiles )
  27. include( CheckFunctionExists )
  28. include( CheckIncludeFileCXX )
  29. include( CheckLibraryExists )
  30. include( CheckStructHasMember )
  31. include( CheckSymbolExists )
  32. include( CheckTypeSize )
  33. include( FindPkgConfig )
  34. ##### include our cmake modules #################
  35. set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
  36. include( TDEMacros )
  37. ##### setup install paths #######################
  38. include( TDESetupPaths )
  39. tde_setup_paths( )
  40. ##### user requested modules ####################
  41. option( BUILD_ALL "Build all" OFF )
  42. option( BUILD_KGTK_TQT "Include TQT support" ${BUILD_ALL} )
  43. option( BUILD_KGTK_TDE "Include TDE support" ${BUILD_ALL} )
  44. option( BUILD_KGTK_GTK2 "Include GTK2 support" ${BUILD_ALL} )
  45. option( BUILD_DOC "Build doc" ${BUILD_ALL} )
  46. option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
  47. ##### configure checks ##########################
  48. include( ConfigureChecks.cmake )
  49. ###### global compiler settings #################
  50. add_definitions(
  51. -DHAVE_CONFIG_H
  52. )
  53. set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
  54. set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
  55. set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
  56. ##### source directories ########################
  57. add_subdirectory( src )
  58. tde_conditional_add_subdirectory( BUILD_KGTK_TQT qt3 )
  59. tde_conditional_add_subdirectory( BUILD_KGTK_TDE kdialogd3 )
  60. tde_conditional_add_subdirectory( BUILD_KGTK_GTK2 gtk2 )
  61. tde_conditional_add_subdirectory( BUILD_DOC doc )
  62. tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
  63. ##### write configure files #####################
  64. configure_file( config.h.cmake config.h @ONLY )
  65. ##### install global wrapper scripts ############
  66. install(PROGRAMS ${CMAKE_SOURCE_DIR}/kdialogd-wrapper DESTINATION ${BIN_INSTALL_DIR})
  67. install(PROGRAMS ${CMAKE_SOURCE_DIR}/kgtk-wrapper DESTINATION ${BIN_INSTALL_DIR})