Amarok – versatile and easy to use audio player
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.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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( amarok )
  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. ##### optional stuff ############################
  30. option( WITH_LIBVISUAL "Enable libvisual support" OFF )
  31. option( WITH_KONQSIDEBAR "Enable konqsidebar plugin" OFF )
  32. option( WITH_XINE "Enable xine-engine support" OFF )
  33. option( WITH_YAUAP "Enable yauap-engine support" OFF )
  34. option( WITH_AKODE "Enable akode-engine support" OFF )
  35. option( WITH_IPOD "Enable iPod support from libgpod" OFF )
  36. option( WITH_IFP "Enable ifp support" OFF )
  37. option( WITH_NJB "Enable njb support" OFF )
  38. option( WITH_MTP "Enable mtp support" OFF )
  39. option( WITH_RIOKARMA "Enable riokarma support" OFF )
  40. option( WITH_DAAP "Enable daap support" OFF )
  41. option( WITH_MP4V2 "Enable mp4v2 support" OFF )
  42. option( WITH_INOTIFY "Enable inotify support" OFF )
  43. ##### user requested modules ####################
  44. option( BUILD_ALL "Build all" OFF )
  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 "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
  55. set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
  56. ##### source directories ########################
  57. add_subdirectory( amarok )
  58. tde_conditional_add_subdirectory( BUILD_DOC doc )
  59. tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
  60. ##### write configure files #####################
  61. configure_file( config.h.cmake config.h @ONLY )