chore(project): Overhaul project structure and build system#20
Merged
Conversation
This commit introduces a major refactoring of the project's structure and CMake build system to establish 'Prism' as the core library product, with the application serving as a self-contained demo. Key Changes: - **Project Restructure**: Reorganized directories to be "Prism-centric" (`libs/Prism` -> `src`, executable -> `demo`). This clarifies the project's identity and improves modularity. - **CMake Overhaul**: All `CMakeLists.txt` files have been rewritten to use modern, target-oriented CMake practices. This improves encapsulation and makes the library easier to reuse. - **Optional Demo App**: The demo application in `app/` is now optional and can be disabled with the `PRISM_BUILD_DEMO` flag, making it easier for consumers to build only the library.
Reorganized header includes to use module-specific paths, moved material and IO headers to more appropriate locations, and updated CMake configuration for modular builds and shared library support. Added a dependencies overview document, improved RPATH and install settings, and updated tests to use the new include structure. This refactor improves modularity, maintainability, and clarity of the codebase.
Adjusted the order of #include statements in several header files to improve consistency and maintain coding standards. No functional changes were made.
Updated the Mesh class constructor to accept a std::filesystem::path reference instead of a std::string for improved type safety and flexibility when handling file paths.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.