feat(fourdst-cli): added more robust cli

This commit is contained in:
2025-08-05 18:22:18 -04:00
parent 2f756433b2
commit 67e611ed9c
2 changed files with 1076 additions and 17 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -2,14 +2,18 @@ project('{project_name}', 'cpp',
version : '{version}',
default_options : ['warning_level=3', 'cpp_std=c++23'])
# Find the fourdst-plugin dependency
plugin_dep = dependency('fourdst_plugin', required : true)
# Find the fourdst-plugin dependency, falling back to the subproject if not found.
plugin_dep = dependency('fourdst_plugin',
required: true,
fallback: ['libplugin', 'plugin_dep'],
default_options: ['tests=false']
)
# Define the shared library for the plugin
shared_library('{project_name}',
'src/{project_name}.cpp',
dependencies : [plugin_dep],
# Add the path to the user-provided interface header
include_directories: include_directories('{interface_include_dir}'),
# Add the path to the local copy of the interface header
include_directories: include_directories('src/include'),
install : true,
)