2023-07-23 21:11:31 +02:00
|
|
|
cmake_minimum_required(VERSION 3.17.0 FATAL_ERROR)
|
2021-01-25 00:24:31 +01:00
|
|
|
|
|
|
|
# metadata
|
|
|
|
set(META_PROJECT_NAME repomgr)
|
|
|
|
set(META_PROJECT_TYPE application)
|
|
|
|
set(META_APP_AUTHOR "Martchus")
|
2022-06-09 19:50:43 +02:00
|
|
|
set(META_APP_URL "https://github.com/${META_APP_AUTHOR}/arch-repo-manager")
|
2021-01-25 00:24:31 +01:00
|
|
|
set(META_APP_DESCRIPTION "Repository manager and package builder for Arch Linux")
|
|
|
|
set(META_APP_CATEGORIES "System;Utility;Network;FileTransfer")
|
|
|
|
set(META_VERSION_MAJOR 0)
|
|
|
|
set(META_VERSION_MINOR 0)
|
2022-07-06 22:49:36 +02:00
|
|
|
set(META_VERSION_PATCH 3)
|
2021-01-25 00:24:31 +01:00
|
|
|
set(META_VERSION_EXACT_SONAME ON)
|
2022-12-22 23:23:42 +01:00
|
|
|
#set(META_CXX_STANDARD 20)
|
|
|
|
set(META_CXX_STANDARD "any")
|
|
|
|
list(APPEND META_PUBLIC_COMPILE_OPTIONS "-std=c++2b")
|
2021-01-25 00:24:31 +01:00
|
|
|
|
|
|
|
project(${META_PROJECT_NAME})
|
|
|
|
|
2022-01-30 22:00:33 +01:00
|
|
|
# allow using non-default configuration
|
|
|
|
set(CONFIGURATION_PACKAGE_SUFFIX "" CACHE STRING "sets the suffix for find_package() calls to packages configured via c++utilities")
|
|
|
|
|
2021-01-25 00:24:31 +01:00
|
|
|
enable_testing()
|
|
|
|
|
|
|
|
# add subdirectories
|
2021-06-21 23:57:58 +02:00
|
|
|
option(INCLUDE_TABULATE_PROJECT "includes the CMake project of tabulate" OFF)
|
|
|
|
if (INCLUDE_TABULATE_PROJECT)
|
|
|
|
add_subdirectory(3rdparty/tabulate)
|
|
|
|
endif ()
|
2022-01-30 01:28:03 +01:00
|
|
|
option(INCLUDE_LMDB_SAFE_PROJECT "includes the CMake project of lmdb-safe" ON)
|
|
|
|
if (INCLUDE_LMDB_SAFE_PROJECT)
|
2022-01-30 01:43:44 +01:00
|
|
|
set(META_NO_INSTALL_TARGETS ON)
|
|
|
|
set(LMDB_SAFE_BUILD_SHARED_LIBS OFF CACHE BOOL "whether to build lmdb-safe as shared library")
|
2022-01-30 01:28:03 +01:00
|
|
|
add_subdirectory(3rdparty/lmdb-safe)
|
2022-01-30 22:00:33 +01:00
|
|
|
set(${NAMESPACE_PREFIX}lmdb-safe${CONFIGURATION_PACKAGE_SUFFIX}_DIR "${CMAKE_CURRENT_BINARY_DIR}/3rdparty/lmdb-safe")
|
2022-01-30 01:43:44 +01:00
|
|
|
unset(META_NO_INSTALL_TARGETS)
|
2022-01-30 01:28:03 +01:00
|
|
|
endif ()
|
2021-01-25 00:24:31 +01:00
|
|
|
add_subdirectory(libpkg)
|
|
|
|
link_directories(${LIBPKG_BINARY_DIR})
|
|
|
|
add_subdirectory(librepomgr)
|
|
|
|
link_directories(${LIBREPOMGR_BINARY_DIR})
|
|
|
|
add_subdirectory(srv)
|
|
|
|
add_subdirectory(cli)
|
|
|
|
add_subdirectory(pacfind)
|
2023-11-09 15:18:50 +01:00
|
|
|
add_subdirectory(pacparse)
|