@@ -4,24 +4,30 @@ INCLUDE(cmake/base.cmake)
44INCLUDE (cmake/eigen.cmake)
55INCLUDE (private_cmake/FindqpOASES.cmake)
66
7+ # Stop if qpOASES is not here
78IF (NOT qpOASES_FOUND)
89 MESSAGE (ERROR " qpOASES not found. Please install it (using robotpkg for instance)" )
910ENDIF ()
1011
12+ # Compiles despite warnings
1113SET (CXX_DISABLE_WERROR True )
14+ # Display all warnings
1215SET (CMAKE_VERBOSE_MAKEFILE True )
1316
17+ # Set project identity
1418SET (PROJECT_NAME ddp-actuator-solver)
1519SET (PROJECT_DESCRIPTION "DDP/iLQR solver for robotics actuators command" )
1620SET (PROJECT_URL "https://github.com/stack-of-tasks/ddp-actuator-solver" )
1721
1822SETUP_PROJECT()
1923
24+ # Add eigen3 as another needed dependency
2025ADD_REQUIRED_DEPENDENCY("eigen3 >= 3.0.5" )
2126
2227INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR} /include )
2328INCLUDE_DIRECTORIES (${qpOASES_INCLUDEDIR} )
2429
30+ # Set the headers to be installed
2531SET (${PROJECT_NAME} _HEADERS
2632 include /ddp-actuator-solver/costfunction.hh
2733 include /ddp-actuator-solver/dynamicmodel.hh
@@ -35,4 +41,8 @@ ADD_SUBDIRECTORY(src)
3541ADD_SUBDIRECTORY (test )
3642ADD_SUBDIRECTORY (examples)
3743
44+ # Generate dependency to ddp-actuator-solver-examples in pc file
45+ PKG_CONFIG_APPEND_LIBS(ddp-actuator-solver-examples)
46+ PKG_CONFIG_APPEND_LIBS(${qpOASES_LIBRARIES} )
47+
3848SETUP_PROJECT_FINALIZE()
0 commit comments