ores.cmake.component.files_tests
tests/component_files.cmake for every component profile: an
explicit, checked-in set(files ...) list of every *.cpp under
tests/, included by CMakeLists.txt in place of
file(GLOB_RECURSE ...) – the idiomatic CMake approach (real build
carries zero GLOB; an external generator regenerates the list on
demand) rather than the CONFIGURE_DEPENDS mitigation. Output
projects/{component_dir}/tests/component_files.cmake.
See the Template variable reference for the complete list of available
variables and their semantics. This archetype adds one more:
files (a list of paths, relative to tests/, of every *.cpp under it) –
computed by a filesystem scan at render time
(projects/ores.codegen/src/codegen/core.py's _COMPONENT_FILES_TEMPLATES
branch), not sourced from the model like every other field.
Template
The full template source. Edit here and re-tangle with
compass build --direct tangle_codegen_templates to regenerate
library/templates/cmake_component_files_tests.mustache.
{{! GENERATED FILE — tangled from projects/ores.codegen/library/templates/ores.cmake.component.files_tests.org. Edit the org source. }}
{{{cmake_license}}}
{{! Regenerate: projects/ores.codegen/scripts/regenerate_cmake_component_files.py --component <name> (or --all). Never hand-edit. }}
{{#component}}
set(files
{{#files}}
"{{.}}"
{{/files}}
)
{{/component}}
See also
- Parent facet: ores.cmake.component
- Sibling (src): ores.cmake.component.files_src
- Template variable reference