Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: break src/CMakeLists into smaller chunks #1438

Merged
merged 6 commits into from
Aug 20, 2023

Conversation

lgrossi
Copy link
Contributor

@lgrossi lgrossi commented Aug 18, 2023

Description

Our currenct CMakeList file is pretty big and hard to understand/edit. This makes it quite rigid to adapt and to break down, specially aiming to have more modular dependencies.

In this PR we are breaking down the CMakeList file into smaller chunks, with specific goals.

We are also breaking down our targets, instead of a standalone executable, we build a library first, to which our executable links. That moves most of our setup to the lib, making the executable definition quite straightforward. This also give us a flexibility of reusing this library, e.g. for tests.

In this MR we also add a small PoC adding tests to our CMake flow, using the new library in the tests context.

@lgrossi lgrossi force-pushed the lucas/break-cmake-down-into-modules branch from 61d1242 to d75d40d Compare August 19, 2023 10:03
@lgrossi lgrossi marked this pull request as ready for review August 19, 2023 10:04
@lgrossi lgrossi force-pushed the lucas/break-cmake-down-into-modules branch 24 times, most recently from 0cf9e31 to 74a63dd Compare August 19, 2023 17:43
@lgrossi lgrossi force-pushed the lucas/break-cmake-down-into-modules branch from e72ecd5 to 2bf8d03 Compare August 19, 2023 23:17
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@lgrossi lgrossi merged commit e53a2a0 into main Aug 20, 2023
@lgrossi lgrossi deleted the lucas/break-cmake-down-into-modules branch August 20, 2023 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants