Skip to content

Conversation

@MaartenMarsman
Copy link
Collaborator

This PR reorganizes C++ sources into subdirectories under src/, updates header includes to be path-qualified relative to src/, and simplifies the build configuration to use a single include root. The build remains fully portable and CRAN-compliant.

- Move bgm- and bgmCompare-specific C++ code into src/bgm/ and src/bgmCompare/
- Update build system to support C++ sources in subdirectories
- Generate src/sources.mk at configure time to list all .cpp files
- Include sources.mk from Makevars.in using portable (CRAN-compliant) rules
- Reorganize remaining C++ files into src/ subdirectories
- Include headers relative to src/ and drop per-module -I flags
@MaartenMarsman MaartenMarsman merged commit 034445b into main Dec 28, 2025
6 checks passed
@MaartenMarsman MaartenMarsman deleted the cpp_code_organization branch December 28, 2025 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants