Closed jorisv closed 4 months ago
Thanks for this work ! This is still a draft, but can it be reviewed / tested yet, or should I wait a bit ?
I will push similar PR on:
I will also create a new repository called simple-robotics/workspace that will store the root CMakelists.txt and probably some scripts to populate the workspace.
I keep this PR as a draft until I'm sure all modified project still build in standalone mode in the CI.
@nim65s If you want to test it, I have uploaded the workspace repository.
If the README.md is hard to understand or you encounter some issues please add some comment in this PR
This PR aims to allow project using jrl-cmakemodules to be used under the same root CMakeLists.txt (workspace).
PROJECT_PACKAGES_IN_WORKSPACE
that should avoid running find_package inADD_PROJECT_DEPENDENCY
andADD_PROJECT_PRIVATE_DEPENDENCY
on project already in the workspaceADD_PROJECT_PRIVATE_DEPENDENCY
that check forPROJECT_PACKAGES_IN_WORKSPACE
before calling find_packagePROJECT_PYTHON_PACKAGES_IN_WORKSPACE
to include Python modules from workspace inPYTHONPATH
PROJECT_SOURCE_DIR
andPROJECT_BINARY_DIR
instead ofCMAKE_SOURCE_DIR
andCMAKE_BINARY_DIR
since thedist
anddoc
target is working with multiple project butdistcheck
is not working. Sincedistcheck
do some very heroic thing with the CMakeCache.txt, I don't think we can make it work for multiple project.