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 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. ### CMakeLists automatically created with AutoVala
  2. ### Do not edit
  3. set (DATADIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}")
  4. set (PKGDATADIR "${DATADIR}/pamac")
  5. set (GETTEXT_PACKAGE "pamac")
  6. set (RELEASE_NAME "pamac")
  7. set (CMAKE_C_FLAGS "")
  8. set (PREFIX ${CMAKE_INSTALL_PREFIX})
  9. set (VERSION "6.7.0")
  10. set (TESTSRCDIR "${CMAKE_SOURCE_DIR}")
  11. set (DOLLAR "$")
  12. configure_file (${CMAKE_SOURCE_DIR}/src/pamac-system-daemon/Config.vala.base ${CMAKE_BINARY_DIR}/src/pamac-system-daemon/Config.vala)
  13. add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\")
  14. set (VERSION "6.7.0")
  15. add_definitions (${DEPS_CFLAGS})
  16. include_directories ( ${CMAKE_BINARY_DIR}/src )
  17. link_libraries ( ${DEPS_LIBRARIES} -lpamacclassic )
  18. link_directories ( ${DEPS_LIBRARY_DIRS} ${CMAKE_BINARY_DIR}/src )
  19. find_package (Vala REQUIRED)
  20. include (ValaVersion)
  21. ensure_vala_version ("0.38" MINIMUM)
  22. include (ValaPrecompile)
  23. set (VALA_PACKAGES ${VALA_PACKAGES} posix)
  24. set (VALA_PACKAGES ${VALA_PACKAGES} gtk+-3.0)
  25. set (VALA_PACKAGES ${VALA_PACKAGES} json-glib-1.0)
  26. set (VALA_PACKAGES ${VALA_PACKAGES} libalpm)
  27. set (VALA_PACKAGES ${VALA_PACKAGES} libcurl)
  28. set (VALA_PACKAGES ${VALA_PACKAGES} libsoup-2.4)
  29. set (VALA_PACKAGES ${VALA_PACKAGES} polkit-gobject-1)
  30. set (VALA_PACKAGES ${VALA_PACKAGES} gio-2.0)
  31. set (VALA_PACKAGES ${VALA_PACKAGES} glib-2.0)
  32. set (VALA_PACKAGES ${VALA_PACKAGES} gobject-2.0)
  33. set (APP_SOURCES ${APP_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/Config.vala)
  34. set (APP_SOURCES ${APP_SOURCES} alpm_config.vala)
  35. set (APP_SOURCES ${APP_SOURCES} mirrors_config.vala)
  36. set (APP_SOURCES ${APP_SOURCES} pamac_config.vala)
  37. set (APP_SOURCES ${APP_SOURCES} system_daemon.vala)
  38. set (CUSTOM_VAPIS_LIST ${CUSTOM_VAPIS_LIST} ${CMAKE_BINARY_DIR}/src/pamacclassic.vapi)
  39. if (ENABLE_UPDATE_ICON)
  40. set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_UPDATE_ICON)
  41. set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_UPDATE_ICON " )
  42. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_UPDATE_ICON " )
  43. endif ()
  44. if (ENABLE_HAMBURGER)
  45. set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_HAMBURGER)
  46. set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_HAMBURGER " )
  47. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_HAMBURGER " )
  48. endif ()
  49. if (KDE_TRAY)
  50. set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY)
  51. set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " )
  52. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DKDE_TRAY " )
  53. endif ()
  54. if (DISABLE_AUR)
  55. set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D DISABLE_AUR)
  56. set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
  57. set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
  58. endif ()
  59. set (COMPILE_OPTIONS ${COMPILE_OPTIONS} --vapidir=${CMAKE_SOURCE_DIR}/src/vapis )
  60. if ((${CMAKE_BUILD_TYPE} STREQUAL "Debug") OR (${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo"))
  61. set(COMPILE_OPTIONS ${COMPILE_OPTIONS} "-g")
  62. endif()
  63. vala_precompile(VALA_C pamac-system-daemon
  64. ${APP_SOURCES}
  65. PACKAGES
  66. ${VALA_PACKAGES}
  67. CUSTOM_VAPIS
  68. ${CUSTOM_VAPIS_LIST}
  69. OPTIONS
  70. ${COMPILE_OPTIONS}
  71. )
  72. add_executable(pamac-system-daemon ${VALA_C})
  73. set ( pamac-system-daemon_DEPENDENCIES ${pamac-system-daemon_DEPENDENCIES} pamacclassic )
  74. add_dependencies( pamac-system-daemon ${pamac-system-daemon_DEPENDENCIES} )
  75. install(TARGETS
  76. pamac-system-daemon
  77. RUNTIME DESTINATION
  78. ${CMAKE_INSTALL_BINDIR}
  79. )
  80. if(HAVE_VALADOC)
  81. valadoc(pamac-system-daemon
  82. ${CMAKE_BINARY_DIR}/valadoc/pamac-system-daemon
  83. ${APP_SOURCES}
  84. PACKAGES
  85. ${VALA_PACKAGES}
  86. CUSTOM_VAPIS
  87. ${CUSTOM_VAPIS_LIST}
  88. )
  89. install(DIRECTORY
  90. ${CMAKE_BINARY_DIR}/valadoc
  91. DESTINATION
  92. ${CMAKE_INSTALL_DATAROOTDIR}/doc/pamac
  93. )
  94. endif()