From 312aa38263b5e014b04a9055f842e83d876af6ea Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 25 Dec 2025 18:24:30 +0100 Subject: Decorate sources as 'generated' to make sure they inject a dependency to their generators, and look for the sources in the build folder instead of the source folder. --- test/ctor.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test/ctor.cc') diff --git a/test/ctor.cc b/test/ctor.cc index e33dc77..8b89f6d 100644 --- a/test/ctor.cc +++ b/test/ctor.cc @@ -25,6 +25,23 @@ ctor::build_configurations ctorTestConfigs(const ctor::settings& settings) }, }, }, + { + .type = ctor::target_type::unit_test, + .system = ctor::output_system::build, + .target = "generated_sources_test", + .sources = { + "generated_sources_test.cc", + "testmain.cc", + }, + .depends = { "libctor_nomain.a" }, + .flags = { + .cxxflags = { + "-std=c++20", "-O3", "-Wall", + "-I../src", "-Iuunit", + "-DOUTPUT=\"generated_sources\"", + }, + }, + }, { .type = ctor::target_type::unit_test, .system = ctor::output_system::build, -- cgit v1.2.3