https://github.com/nasa/fprime/pull/1994 introduced a new structure for projects where the CMake project() can be defined at the top level of the project tree only, and not within deployments. This modifies the fprime-util new commands to account for that.
I also took the liberty to add the Components/ module to the project generation tree because it sounds to me like a good pattern to suggest to users - while it does not force anything onto them.
Note: I had to revert back the default fprime version new --project pulls since #1994 is only in devel for now.
Testing/Review Recommendations
Checkout, install, and verify that fprime-util new --project && fprime-util new --deployment generates a buildable and runnable project.
Future Work
Switch default project F´ version back to master for next release.
Somewhat unrelated, fprime-gds should automatically detect the deployment's build-artifacts/ when ran within the deployment module. Currently, we need to pass in -d ../build-artifacts/MyDeployment or run at the top level of the project tree.
fprime-util new
Change Description
Addresses https://github.com/nasa/fprime/issues/2002
https://github.com/nasa/fprime/pull/1994 introduced a new structure for projects where the CMake project() can be defined at the top level of the project tree only, and not within deployments. This modifies the
fprime-util new
commands to account for that.I also took the liberty to add the
Components/
module to the project generation tree because it sounds to me like a good pattern to suggest to users - while it does not force anything onto them.Note: I had to revert back the default fprime version
new --project
pulls since #1994 is only in devel for now.Testing/Review Recommendations
Checkout, install, and verify that
fprime-util new --project && fprime-util new --deployment
generates a buildable and runnable project.Future Work
fprime-gds
should automatically detect the deployment'sbuild-artifacts/
when ran within the deployment module. Currently, we need to pass in-d ../build-artifacts/MyDeployment
or run at the top level of the project tree.