summaryrefslogtreecommitdiff
path: root/test/ctor.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2025-12-25 18:24:30 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2025-12-26 15:50:05 +0100
commit312aa38263b5e014b04a9055f842e83d876af6ea (patch)
treecc335604c3ec8f9a8276733d6b4b5e1e6ccd0e7b /test/ctor.cc
parent3091c5b12717a44a67962b9e245b2de8069a7cf5 (diff)
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.generated_sources
Diffstat (limited to 'test/ctor.cc')
-rw-r--r--test/ctor.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/ctor.cc b/test/ctor.cc
index e33dc77..8b89f6d 100644
--- a/test/ctor.cc
+++ b/test/ctor.cc
@@ -28,6 +28,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,
.target = "argsplit_test",
.sources = {
"argsplit_test.cc",