Dolphin file manager
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.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #################################################
  2. #
  3. # (C) 2010-2011 Serghei Amelian
  4. # serghei (DOT) amelian (AT) gmail.com
  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( dolphin )
  14. set( VERSION R14.1.0 )
  15. ##### include essential cmake modules ###########
  16. include( CheckCXXSourceCompiles )
  17. include( CheckFunctionExists )
  18. include( CheckIncludeFileCXX )
  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. ##### optional stuff
  30. option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
  31. option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
  32. ##### user requested modules
  33. option( BUILD_ALL "Build all" ON )
  34. option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
  35. option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
  36. ##### configure checks ##########################
  37. include( ConfigureChecks.cmake )
  38. ###### global compiler settings #################
  39. add_definitions( -DHAVE_CONFIG_H )
  40. set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
  41. set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
  42. set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
  43. ##### source directories ########################
  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 )