2025-02-19 16:11:55 -05:00
|
|
|
# Define the library
|
|
|
|
|
config_sources = files(
|
2025-06-22 04:52:04 -04:00
|
|
|
'lib/config.cpp',
|
2025-02-19 16:11:55 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Define the libconfig library so it can be linked against by other parts of the build system
|
2025-12-05 14:26:22 -05:00
|
|
|
#libconfig = library('config',
|
|
|
|
|
# config_sources,
|
|
|
|
|
# include_directories: include_directories('include'),
|
|
|
|
|
# cpp_args: ['-fvisibility=default'],
|
|
|
|
|
# dependencies: [yaml_cpp_dep, glaze_dep],
|
|
|
|
|
# install : true)
|
2025-02-19 16:11:55 -05:00
|
|
|
|
|
|
|
|
config_dep = declare_dependency(
|
2025-06-22 04:52:04 -04:00
|
|
|
include_directories: include_directories('include'),
|
2025-12-05 14:26:22 -05:00
|
|
|
# link_with: libconfig,
|
|
|
|
|
# sources: config_sources,
|
|
|
|
|
dependencies: [glaze_dep],
|
2025-02-19 16:11:55 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Make headers accessible
|
2025-06-22 04:52:04 -04:00
|
|
|
config_headers = files(
|
2025-12-05 14:26:22 -05:00
|
|
|
'include/fourdst/config/config.h',
|
|
|
|
|
'include/fourdst/config/registry.h',
|
2025-06-22 04:52:04 -04:00
|
|
|
)
|
2025-06-21 16:17:34 -04:00
|
|
|
install_headers(config_headers, subdir : 'fourdst/fourdst/config')
|