How to best structure a multi-deployment project. #3725
Unanswered
ReggieMarr
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
This was quite difficult for us too. We eventually got it working, but we had to do some strange hacks involving autocoding the settings.ini file and aliasing target names in CMake. It feels like the CMake system is not designed with this in mind. Would be curious to know if we're missing some CMake feature that could make this easier. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I'm currently re-structuring the repo's I work on for developing flight software with F'.
The goal here is to support a base project structure which can be shared publicly but breaking out Deployments and Components such that some can be isolated as submodules.
I.e. something like this:
project root - Deployments - PublicDeploymentA - PublicDeploymentB - private (submodule) - Components - PublicComponentA - private (submodule) deps fprimeNow managing references isn't too big of a deal since I can just set the project root in cmake to the root of the base repo however this gets a bit more complicated when it comes to deployments.
It appears fprime-util really wants the project structure to look something like this:
project root - CMakeLists.txt Deployment CMakeLists.txt fprimeWhere the root CMakeLists.txt has knowledge of all Deployments and Components.
I've managed to make some progress with work arounds but I end up with Deployment targets like "Deployments_target_Deployment" and that's a bit annoying.
Is there perhaps a better approach than what I'm taking ?
Beta Was this translation helpful? Give feedback.
All reactions