Commit db75a185 authored by Giulio Romualdi's avatar Giulio Romualdi
Browse files

Move the definition of the dependencies in a separate file

No related merge requests found
Showing with 22 additions and 9 deletions
+22 -9
# Copyright (C) 2019 Istituto Italiano di Tecnologia (IIT). All rights reserved.
# This software may be modified and distributed under the terms of the
# GNU Lesser General Public License v2.1 or any later version.
#
# This software may be modified and distributed under the terms of the
# BSD-3-Clause license. See the accompanying LICENSE file for details.
include(OsqpEigenFindOptionalDependencies)
#---------------------------------------------
## Required Dependencies
find_package(Eigen3 3.2.92 REQUIRED)
find_package(osqp REQUIRED)
#---------------------------------------------
## Optional Dependencies
find_package(Catch2 QUIET)
checkandset_optional_dependency(Catch2)
find_package(VALGRIND QUIET)
checkandset_optional_dependency(VALGRIND)
......@@ -30,7 +30,7 @@
include(CMakeDependentOption)
# Check if a package is installed and set some cmake variables
macro(checkandset_dependency package)
macro(checkandset_optional_dependency package)
set(PREFIX "OSQPEIGEN")
......@@ -113,11 +113,3 @@ macro(OSQPEIGEN_DEPENDENT_OPTION _option _doc _default _deps _force)
endif()
endmacro()
################################################################################
# Find all packages
find_package(Eigen3 3.2.92 REQUIRED)
find_package(osqp REQUIRED)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment