build(opatIO): broke opatIO out into a seperate module

This commit is contained in:
2025-03-24 04:57:18 -04:00
parent 001ddbf055
commit ff87585d71
6 changed files with 16 additions and 6 deletions

1
.gitignore vendored
View File

@@ -63,6 +63,7 @@ subprojects/tetgen/
subprojects/yaml-cpp/
subprojects/quill/
subprojects/googletest-1.15.2/
subprojects/opat-core/
.vscode/

View File

@@ -3,4 +3,5 @@ cmake = import('cmake')
subdir('mfem')
subdir('yaml-cpp')
subdir('quill')
subdir('boost')
subdir('boost')
subdir('opatIO')

View File

@@ -0,0 +1,2 @@
opatio_dep = dependency('opatio', fallback: ['opat-core', 'opatio_dep'])

View File

@@ -11,11 +11,11 @@ subdir('dobj')
# Asset Libraries
subdir('eos')
subdir('opatIO')
# subdir('opatIO')
subdir('meshIO')
# Resouce Manager Libraries
subdir('resource')
# Physics Libraries
subdir('network')
subdir('network')

View File

@@ -0,0 +1,8 @@
[wrap-git]
url = https://github.com/4D-STAR/opat-core
revision = main
depth = 1
[provide]
dependency_names = opatio_dep

View File

@@ -13,9 +13,7 @@ foreach test_file : test_sources
test_exe = executable(
exe_name,
test_file,
dependencies: [gtest_dep, picosha2_dep, gtest_main],
include_directories: include_directories('../../src/opatIO/public'),
link_with: libopatIO, # Link the dobj library
dependencies: [gtest_dep, picosha2_dep, gtest_main, opatio_dep],
install_rpath: '@loader_path/../../src' # Ensure runtime library path resolves correctly
)