Browse Source

cmake: add install_python_requirements helper

- this is useful because it installs the python requirements using the
python interpreter found and used by cmake
release/1.12
Daniel Agar 4 years ago
parent
commit
aef3c474e2
  1. 7
      CMakeLists.txt

7
CMakeLists.txt

@ -454,3 +454,10 @@ add_custom_target(size @@ -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
)

Loading…
Cancel
Save