build(gtest): added gtest as a subproject in case it is not already installed on the system

This commit is contained in:
2025-03-13 14:12:14 -04:00
parent bb0ec4d341
commit 46dfb17385
263 changed files with 111287 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ foreach test_file : test_sources
test_exe = executable(
exe_name,
test_file,
dependencies: [gtest_dep, const_dep],
dependencies: [gtest_dep, const_dep, gtest_main],
include_directories: include_directories('../../src/const/public'),
link_with: libconst, # Link the dobj library
install_rpath: '@loader_path/../../src' # Ensure runtime library path resolves correctly