AbaKus – a complex calculator
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.

77 line
1.7KB

  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( abakus )
  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. ##### user requested modules ####################
  30. option( BUILD_ALL "Build all" OFF )
  31. option( BUILD_DOC "Build doc" ${BUILD_ALL} )
  32. option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
  33. ##### configure checks ##########################
  34. include( ConfigureChecks.cmake )
  35. ###### global compiler settings #################
  36. add_definitions(
  37. -DHAVE_CONFIG_H
  38. )
  39. set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
  40. set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
  41. set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
  42. ##### source directories ########################
  43. add_subdirectory( src )
  44. tde_conditional_add_subdirectory( BUILD_DOC doc )
  45. tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
  46. ##### write configure files #####################
  47. configure_file( config.h.cmake config.h @ONLY )