added findPackage script for osqp in case control_box_rst is linked against it)

master
Christoph Rösmann 2020-02-21 09:34:33 +01:00
parent 95dce501b2
commit acb39e908a
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,8 @@ find_package(control_box_rst QUIET COMPONENTS
# if (EXISTS "FindEigen3.cmake")
find_package(Eigen3 REQUIRED)
find_package(osqp QUIET)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(EXTERNAL_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR})