I would like for my project which is being build with portions in cmake - to have cmake set up a virtualenv for my python code.
Is this usually done or should I just assume that my python environment is going to be a global one?
I would like for my project which is being build with portions in cmake - to have cmake set up a virtualenv for my python code.
Is this usually done or should I just assume that my python environment is going to be a global one?
The linked gist works
Note that you might need to use
${CMAKE_CURRENT_BINARY_PATH/venv}
or similar if you useWORKING_DIRECTORY
to override the current working directory.