-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
27 lines (22 loc) · 876 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
27 lines (22 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
include(./ext/c4core/cmake/c4Project.cmake)
project(c4conf
DESCRIPTION "YAML configuration loading and merging from multiple files"
HOMEPAGE_URL "https://github.com/biojppm/c4conf"
LANGUAGES CXX)
c4_project(VERSION 0.1.0
AUTHOR "Joao Paulo Magalhaes <dev@jpmag.me>")
c4_require_subproject(c4core SUBDIRECTORY ${C4CONF_EXT_DIR}/c4core)
c4_require_subproject(c4fs SUBDIRECTORY ${C4CONF_EXT_DIR}/c4fs)
c4_require_subproject(ryml SUBDIRECTORY ${C4CONF_EXT_DIR}/rapidyaml)
c4_add_library(c4conf
SOURCES c4/conf/conf.hpp c4/conf/conf.cpp c4/conf/export.hpp
SOURCE_ROOT ${C4CONF_SRC_DIR}
LIBS c4fs ryml c4core
INC_DIRS
$<BUILD_INTERFACE:${C4CONF_SRC_DIR}> $<INSTALL_INTERFACE:include>
)
c4_install_target(c4conf)
c4_install_exports()
c4_add_dev_targets()
c4_pack_project(TYPE LIBRARY)