2017-10-10 16:29:22 -03:00
|
|
|
### CMakeLists automatically created with AutoVala
|
|
|
|
### Do not edit
|
|
|
|
|
2017-10-29 17:23:58 -03:00
|
|
|
project (pamac-classic)
|
2017-10-10 16:29:22 -03:00
|
|
|
cmake_minimum_required (VERSION 2.6)
|
|
|
|
cmake_policy (VERSION 2.8)
|
|
|
|
list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
|
|
|
enable_testing ()
|
|
|
|
option(ICON_UPDATE "Update the icon cache after installing" ON)
|
|
|
|
option(BUILD_VALADOC "Build API documentation if Valadoc is available" OFF)
|
|
|
|
option(DISABLE_AUR "DISABLE_AUR" OFF)
|
2017-10-29 14:28:26 -03:00
|
|
|
option(ENABLE_UPDATE_ICON "ENABLE_UPDATE_ICON" OFF)
|
2017-11-01 20:02:27 -03:00
|
|
|
option(ENABLE_HAMBURGER "ENABLE_HAMBURGER" OFF)
|
2017-10-10 16:29:22 -03:00
|
|
|
option(KDE_TRAY "KDE_TRAY" OFF)
|
|
|
|
|
|
|
|
if( NOT CMAKE_BUILD_TYPE )
|
|
|
|
set(CMAKE_BUILD_TYPE Release)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
if( ( ${CMAKE_INSTALL_PREFIX} MATCHES "^/usr/local" ) )
|
|
|
|
# A workaround to ensure that works 'out of the box' in Debian-based systems
|
|
|
|
set(CMAKE_INSTALL_LIBDIR lib)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(HAVE_VALADOC OFF)
|
|
|
|
if(BUILD_VALADOC)
|
|
|
|
find_package(Valadoc)
|
|
|
|
if(VALADOC_FOUND)
|
|
|
|
set(HAVE_VALADOC ON)
|
|
|
|
include(Valadoc)
|
|
|
|
else()
|
|
|
|
message("Valadoc not found, will not build documentation")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
find_package(PkgConfig)
|
|
|
|
|
|
|
|
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} gdk-3.0)
|
|
|
|
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} gtk+-3.0)
|
|
|
|
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} json-glib-1.0)
|
|
|
|
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} libalpm)
|
|
|
|
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} libcurl)
|
|
|
|
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} libnotify)
|
|
|
|
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} libsoup-2.4)
|
|
|
|
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} polkit-gobject-1)
|
|
|
|
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} vte-2.91)
|
|
|
|
if (KDE_TRAY)
|
|
|
|
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} appindicator3-0.1)
|
|
|
|
endif ()
|
|
|
|
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} gio-2.0)
|
|
|
|
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} glib-2.0)
|
|
|
|
set(MODULES_TO_CHECK ${MODULES_TO_CHECK} gobject-2.0)
|
|
|
|
|
|
|
|
pkg_check_modules(DEPS REQUIRED ${MODULES_TO_CHECK})
|
|
|
|
|
|
|
|
|
|
|
|
find_program ( WHERE_GRESOURCE glib-compile-resources )
|
|
|
|
if ( NOT WHERE_GRESOURCE )
|
|
|
|
MESSAGE(FATAL_ERROR "Error! GLIB-COMPILE-RESOURCES is not installed.")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_subdirectory(src/vapis)
|
2017-11-10 22:36:50 -03:00
|
|
|
add_subdirectory(data/schemas)
|
2017-10-10 16:29:22 -03:00
|
|
|
add_subdirectory(po)
|
|
|
|
add_subdirectory(data/pixmaps)
|
|
|
|
add_subdirectory(data/mime)
|
|
|
|
add_subdirectory(data/polkit)
|
|
|
|
add_subdirectory(data/systemd)
|
|
|
|
add_subdirectory(data)
|
2017-10-29 17:23:58 -03:00
|
|
|
add_subdirectory(data/dbus)
|
2017-10-10 16:29:22 -03:00
|
|
|
add_subdirectory(data/icons/24x24/status)
|
|
|
|
add_subdirectory(data/icons/16x16/apps)
|
|
|
|
add_subdirectory(data/icons/32x32/apps)
|
|
|
|
add_subdirectory(data/interface)
|
|
|
|
add_subdirectory(src)
|
|
|
|
add_subdirectory(src/pamac-user-daemon)
|
|
|
|
add_subdirectory(src/pamac-tray)
|
2017-10-15 17:04:01 -03:00
|
|
|
add_subdirectory(src/pamac-clean-cache)
|
2017-10-10 16:29:22 -03:00
|
|
|
add_subdirectory(src/pamac-install)
|
|
|
|
add_subdirectory(src/pamac-manager)
|
|
|
|
add_subdirectory(src/pamac-system-daemon)
|
|
|
|
|