build(libcomposition): brought working build system into libcomposition

This commit is contained in:
2025-06-21 11:33:27 -04:00
parent 58de341056
commit db88e308de
24 changed files with 424 additions and 76 deletions

View File

@@ -0,0 +1,2 @@
config_p = subproject('libconfig')
config_dep = config_p.get_variable('config_dep')

View File

@@ -0,0 +1,2 @@
const_p = subproject('libconstants')
const_dep = const_p.get_variable('const_dep')

View File

@@ -0,0 +1,6 @@
logging_p = subproject('liblogging')
logging_dep = logging_p.get_variable('logging_dep')
quill_dep = logging_p.get_variable('quill_dep')
log_dep = [logging_dep, quill_dep]

View File

@@ -0,0 +1,3 @@
subdir('libconstants')
subdir('liblogging')
subdir('libconfig')

View File

@@ -1,24 +1,5 @@
cmake = import('cmake')
subdir('mfem')
subdir('yaml-cpp')
subdir('quill')
subdir('boost')
subdir('opatIO')
subdir('mpi')
subdir('hypre')
subdir('pybind')
subdir('fourdst')
subdir('cppad')
# Set the config file error handling options
configErr = get_option('config_error_handling')
# build up any -D flags we need
commonCppArgs = []
if configErr == 'warn'
commonCppArgs += ['-DCONFIG_WARN']
elif configErr == 'harsh'
commonCppArgs += ['-DCONFIG_HARSH']
endif
add_project_arguments(commonCppArgs, language: 'cpp')