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.

72 lines
1.5KB

  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. ##### include essential cmake modules ###########
  15. include( CheckCXXSourceCompiles )
  16. include( CheckFunctionExists )
  17. include( CheckIncludeFileCXX )
  18. include( CheckStructHasMember )
  19. include( CheckSymbolExists )
  20. include( CheckTypeSize )
  21. include( FindPkgConfig )
  22. ##### include our cmake modules #################
  23. set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
  24. include( TDEMacros )
  25. ##### setup install paths #######################
  26. include( TDESetupPaths )
  27. tde_setup_paths( )
  28. ##### optional stuff ############################
  29. # option( WITH_LIBVISUAL "Enable libvisual support" OFF )
  30. ##### configure checks ##########################
  31. include( ConfigureChecks.cmake )
  32. ###### global compiler settings #################
  33. add_definitions(
  34. -DHAVE_CONFIG_H
  35. )
  36. set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
  37. set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
  38. set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
  39. ##### source directories ########################
  40. add_subdirectory( src )
  41. ##### write configure files #####################
  42. configure_file( config.h.cmake config.h @ONLY )