Graphical package manager for pacman based on pamac 5.x.x
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.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ### CMakeLists automatically created with AutoVala
  2. ### Do not edit
  3. project (pamac)
  4. cmake_minimum_required (VERSION 2.6)
  5. cmake_policy (VERSION 2.8)
  6. list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
  7. enable_testing ()
  8. option(ICON_UPDATE "Update the icon cache after installing" ON)
  9. option(BUILD_VALADOC "Build API documentation if Valadoc is available" OFF)
  10. option(ENABLE_UPDATE_ICON "ENABLE_UPDATE_ICON" OFF)
  11. option(ENABLE_HAMBURGER "ENABLE_HAMBURGER" OFF)
  12. option(KDE_TRAY "KDE_TRAY" OFF)
  13. option(DISABLE_AUR "DISABLE_AUR" OFF)
  14. if( NOT CMAKE_BUILD_TYPE )
  15. set(CMAKE_BUILD_TYPE Release)
  16. endif()
  17. include(GNUInstallDirs)
  18. if( ( ${CMAKE_INSTALL_PREFIX} MATCHES "^/usr/local" ) )
  19. # A workaround to ensure that works 'out of the box' in Debian-based systems
  20. set(CMAKE_INSTALL_LIBDIR lib)
  21. endif()
  22. set(HAVE_VALADOC OFF)
  23. if(BUILD_VALADOC)
  24. find_package(Valadoc)
  25. if(VALADOC_FOUND)
  26. set(HAVE_VALADOC ON)
  27. include(Valadoc)
  28. else()
  29. message("Valadoc not found, will not build documentation")
  30. endif()
  31. endif()
  32. find_package(PkgConfig)
  33. set(MODULES_TO_CHECK ${MODULES_TO_CHECK} gdk-3.0)
  34. set(MODULES_TO_CHECK ${MODULES_TO_CHECK} gtk+-3.0)
  35. set(MODULES_TO_CHECK ${MODULES_TO_CHECK} json-glib-1.0)
  36. set(MODULES_TO_CHECK ${MODULES_TO_CHECK} libalpm)
  37. set(MODULES_TO_CHECK ${MODULES_TO_CHECK} libcurl)
  38. set(MODULES_TO_CHECK ${MODULES_TO_CHECK} libnotify)
  39. set(MODULES_TO_CHECK ${MODULES_TO_CHECK} libsoup-2.4)
  40. set(MODULES_TO_CHECK ${MODULES_TO_CHECK} polkit-gobject-1)
  41. set(MODULES_TO_CHECK ${MODULES_TO_CHECK} vte-2.91)
  42. if (KDE_TRAY)
  43. set(MODULES_TO_CHECK ${MODULES_TO_CHECK} appindicator3-0.1)
  44. endif ()
  45. set(MODULES_TO_CHECK ${MODULES_TO_CHECK} gio-2.0)
  46. set(MODULES_TO_CHECK ${MODULES_TO_CHECK} glib-2.0)
  47. set(MODULES_TO_CHECK ${MODULES_TO_CHECK} gobject-2.0)
  48. pkg_check_modules(DEPS REQUIRED ${MODULES_TO_CHECK})
  49. find_program ( WHERE_GRESOURCE glib-compile-resources )
  50. if ( NOT WHERE_GRESOURCE )
  51. MESSAGE(FATAL_ERROR "Error! GLIB-COMPILE-RESOURCES is not installed.")
  52. endif()
  53. add_subdirectory(src/vapis)
  54. add_subdirectory(po)
  55. add_subdirectory(data/pixmaps)
  56. add_subdirectory(data/mime)
  57. add_subdirectory(data/polkit)
  58. add_subdirectory(data/systemd)
  59. add_subdirectory(data)
  60. add_subdirectory(data/dbus)
  61. add_subdirectory(data/icons/24x24/status)
  62. add_subdirectory(data/icons/16x16/apps)
  63. add_subdirectory(data/icons/32x32/apps)
  64. add_subdirectory(data/interface)
  65. add_subdirectory(src)
  66. add_subdirectory(src/pamac-user-daemon)
  67. add_subdirectory(src/pamac-tray)
  68. add_subdirectory(src/pamac-clean-cache)
  69. add_subdirectory(src/pamac-install)
  70. add_subdirectory(src/pamac-manager)
  71. add_subdirectory(src/pamac-system-daemon)