Skip to content

Commit 2bfde23

Browse files
[cmake] Use ADD_REQUIRED_DEPENDENCY to get qpoases.
1 parent 12d4399 commit 2bfde23

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

CMakeLists.txt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
22

33
INCLUDE(cmake/base.cmake)
44
INCLUDE(cmake/eigen.cmake)
5-
INCLUDE(private_cmake/FindqpOASES.cmake)
6-
7-
# Stop if qpOASES is not here
8-
IF (NOT qpOASES_FOUND)
9-
MESSAGE(ERROR " qpOASES not found. Please install it (using robotpkg for instance)")
10-
ENDIF()
115

126
# Compiles despite warnings
137
SET(CXX_DISABLE_WERROR True)
@@ -21,11 +15,11 @@ SET(PROJECT_URL "https://github.com/stack-of-tasks/ddp-actuator-solver")
2115

2216
SETUP_PROJECT()
2317

18+
ADD_REQUIRED_DEPENDENCY("qpOASES")
2419
# Add eigen3 as another needed dependency
2520
ADD_REQUIRED_DEPENDENCY("eigen3 >= 3.0.5")
2621

2722
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
28-
INCLUDE_DIRECTORIES(${qpOASES_INCLUDEDIR})
2923

3024
# Set the headers to be installed
3125
SET(${PROJECT_NAME}_HEADERS
@@ -43,6 +37,5 @@ ADD_SUBDIRECTORY(examples)
4337

4438
# Generate dependency to ddp-actuator-solver-examples in pc file
4539
PKG_CONFIG_APPEND_LIBS(ddp-actuator-solver-examples)
46-
PKG_CONFIG_APPEND_LIBS(${qpOASES_LIBRARIES})
4740

4841
SETUP_PROJECT_FINALIZE()

0 commit comments

Comments
 (0)