cmake: add install_python_requirements helper

- this is useful because it installs the python requirements using the
python interpreter found and used by cmake
This commit is contained in:
Daniel Agar 2021-03-19 19:39:24 -04:00
parent a13459858d
commit aef3c474e2

View File

@ -454,3 +454,10 @@ add_custom_target(size
WORKING_DIRECTORY ${PX4_BINARY_DIR}
USES_TERMINAL
)
# install python requirements using configured python
add_custom_target(install_python_requirements
COMMAND ${PYTHON_EXECUTABLE} -m pip install --requirement ${PX4_SOURCE_DIR}/Tools/setup/requirements.txt
DEPENDS ${PX4_SOURCE_DIR}/Tools/setup/requirements.txt
USES_TERMINAL
)