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.

CMakeLists.txt 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
  41. set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
  42. ##### source directories ########################
  43. add_subdirectory( icons )
  44. add_subdirectory( src )
  45. tde_conditional_add_subdirectory( BUILD_DOC doc )
  46. tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
  47. ##### write configure files #####################
  48. configure_file( config.h.cmake config.h @ONLY )