pamac-classic/CMakeLists.txt

101 lines
3.3 KiB
CMake

### CMakeLists automatically created with AutoVala
### Do not edit
project (pamac)
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(ENABLE_UPDATE_ICON "ENABLE_UPDATE_ICON" OFF)
option(ENABLE_HAMBURGER "ENABLE_HAMBURGER" OFF)
option(KDE_TRAY "KDE_TRAY" OFF)
option(DISABLE_AUR "DISABLE_AUR" 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_glib_compile_resources glib-compile-resources )
if ( NOT WHERE_glib_compile_resources )
MESSAGE(FATAL_ERROR "Error! external program 'glib-compile-resources' is not installed.")
endif()
find_program ( WHERE_gtk_update_icon_cache gtk-update-icon-cache )
if ( NOT WHERE_gtk_update_icon_cache )
find_program ( WHERE_gtk_update_icon_cache gtk-update-icon-cache.3.0 )
if ( NOT WHERE_gtk_update_icon_cache )
MESSAGE(FATAL_ERROR "Error! none of the external programs 'gtk-update-icon-cache', 'gtk-update-icon-cache.3.0', are installed.")
endif()
endif()
find_program ( WHERE_glib_compile_schemas glib-compile-schemas )
if ( NOT WHERE_glib_compile_schemas )
MESSAGE(FATAL_ERROR "Error! external program 'glib-compile-schemas' is not installed.")
endif()
find_program ( WHERE_g_ir_compiler g-ir-compiler )
if ( NOT WHERE_g_ir_compiler )
MESSAGE(FATAL_ERROR "Error! external program 'g-ir-compiler' is not installed.")
endif()
add_subdirectory(src/vapis)
add_subdirectory(po)
add_subdirectory(data/pixmaps)
add_subdirectory(data/mime)
add_subdirectory(data/polkit)
add_subdirectory(data/systemd)
add_subdirectory(data)
add_subdirectory(data/dbus)
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)
add_subdirectory(src/pamac-clean-cache)
add_subdirectory(src/pamac-install)
add_subdirectory(src/pamac-manager)
add_subdirectory(src/pamac-system-daemon)