diff --git a/gucc/tests/meson.build b/gucc/tests/meson.build index 7ffbb2c..c1243e3 100644 --- a/gucc/tests/meson.build +++ b/gucc/tests/meson.build @@ -1,6 +1,3 @@ -# gucc test path -add_global_arguments('-DGUCC_TEST_DIR="' + meson.current_source_dir() + '"', language : 'cpp') - executable( 'test-initcpio', files('unit-initcpio.cpp'), diff --git a/meson.build b/meson.build index f0b4bd1..e87688a 100644 --- a/meson.build +++ b/meson.build @@ -53,6 +53,9 @@ else endif add_global_arguments('-DINSTALLER_VERSION="' + git_version + '"', language : 'cpp') +# gucc test path +add_global_arguments('-DGUCC_TEST_DIR="' + meson.current_source_dir() + '/gucc/tests/"', language : 'cpp') + # Common dependencies spdlog = dependency('spdlog', version : ['>=1.12.0'], fallback : ['spdlog', 'spdlog_dep']) fmt = dependency('fmt', version : ['>=10.1.0'], fallback : ['fmt', 'fmt_dep'])