diff options
| author | Leitwolf11 | 2026-09-24 23:05:47 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-09-24 23:05:47 +0300 |
| commit | d79b294903e4d0f4b24fdf1cc50be4b0fec7f745 (patch) | |
| tree | 64f0c7c3dfbc08bfb70d9a37df5cccae3d52b526 /src/Progmasoft/meson.build | |
| parent | 9ad804cedf4cc4a85ef89fe097f97a3b44654360 (diff) | |
| download | catch3-0.2.0.tar.gz | |
Add snapshots and JUnit result serialization0.2.0
Diffstat (limited to 'src/Progmasoft/meson.build')
| -rw-r--r-- | src/Progmasoft/meson.build | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/Progmasoft/meson.build b/src/Progmasoft/meson.build index 109edaa4..3e1ab458 100644 --- a/src/Progmasoft/meson.build +++ b/src/Progmasoft/meson.build @@ -1,8 +1,18 @@ # Copyright (c) 2026 Progmasoft. # SPDX-License-Identifier: MPL-2.0 WITH AdditionRef-Progmasoft-Exception-1.1 -# Expose the header-only C++20 layer without raising Catch2's C++14 baseline. +# Compile the non-template C++20 utilities separately while retaining Catch2's +# own C++14 baseline for existing users. +progmasoft_catch3 = static_library( + 'ProgmasoftCatch3', + ['Results.cpp', 'Snapshot.cpp', 'XmlWriter.cpp'], + include_directories: '..', + dependencies: catch2_dep, + override_options: ['cpp_std=c++20'], + install: get_option('install'), +) progmasoft_catch3_dep = declare_dependency( + link_with: progmasoft_catch3, dependencies: catch2_dep, include_directories: include_directories('..'), ) @@ -13,6 +23,9 @@ if get_option('install') install_headers('Catch3/Generator.hpp', subdir: 'Progmasoft/Catch3') install_headers('Catch3/Property.hpp', subdir: 'Progmasoft/Catch3') install_headers('Catch3/Random.hpp', subdir: 'Progmasoft/Catch3') + install_headers('Catch3/Results.hpp', subdir: 'Progmasoft/Catch3') + install_headers('Catch3/Snapshot.hpp', subdir: 'Progmasoft/Catch3') + install_headers('Catch3/XmlWriter.hpp', subdir: 'Progmasoft/Catch3') install_headers('Catch3/Generators/Boolean.hpp', subdir: 'Progmasoft/Catch3/Generators') install_headers('Catch3/Generators/Integer.hpp', subdir: 'Progmasoft/Catch3/Generators') endif |