11#
22# Copyright (c) 2019 CNRS
33#
4- # This file is part of eiquadprog
5- # pinocchio is free software: you can redistribute it
6- # and/or modify it under the terms of the GNU Lesser General Public
7- # License as published by the Free Software Foundation, either version
8- # 3 of the License, or (at your option) any later version.
9- # pinocchio is distributed in the hope that it will be
10- # useful, but WITHOUT ANY WARRANTY; without even the implied warranty
11- # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12- # General Lesser Public License for more details. You should have
13- # received a copy of the GNU Lesser General Public License along with
14- # pinocchio If not, see
15- # <http://www.gnu.org/licenses/>.
164
175CMAKE_MINIMUM_REQUIRED (VERSION 2.6)
186
@@ -21,9 +9,10 @@ INCLUDE(cmake/boost.cmake)
219INCLUDE (cmake/eigen.cmake)
2210INCLUDE (cmake/test .cmake)
2311
12+ SET (PROJECT_NAMESPACE stack-of-tasks)
2413SET (PROJECT_NAME eiquadprog)
2514SET (PROJECT_DESCRIPTION "C++ reimplementation of eiquadprog" )
26- SET (PROJECT_URL "https://gepgitlab.laas.fr/gbuondon/eiquadprog " )
15+ SET (PROJECT_URL "https://gepgitlab.laas.fr/${PROJECT_NAMESPACE} / ${PROJECT_NAME} " )
2716SET (PROJECT_CUSTOM_HEADER_EXTENSION "hpp" )
2817
2918# Disable -Werror on Unix for now.
@@ -37,35 +26,14 @@ SETUP_PROJECT()
3726# ----------------------------------------------------
3827ADD_REQUIRED_DEPENDENCY("eigen3" )
3928
40- # ----------------------------------------------------
41- # --- INCLUDE ----------------------------------------
42- # ----------------------------------------------------
43- # Add headers here if any
44- SET (${PROJECT_NAME} _HEADERS
45- include /eiquadprog/eiquadprog.hpp
46- include /eiquadprog/eiquadprog-fast.hpp
47- include /eiquadprog/eiquadprog-fast.hxx
48- )
49-
50- INSTALL (FILES
51- ${${PROJECT_NAME} _HEADERS}
52- DESTINATION include /${PROJECT_NAME}
53- PERMISSIONS OWNER_READ GROUP_READ WORLD_READ OWNER_WRITE
54- )
55-
56- SET (BOOST_REQUIERED_COMPONENTS "" )
57- SET (BOOST_BUILD_COMPONENTS unit_test_framework)
58- SET (BOOST_OPTIONAL_COMPONENTS "" )
59-
60- SET (BOOST_COMPONENTS ${BOOST_REQUIERED_COMPONENTS} ${BOOST_OPTIONAL_COMPONENTS} ${BOOST_BUILD_COMPONENTS} )
29+ SET (BOOST_COMPONENTS unit_test_framework)
6130SEARCH_FOR_BOOST()
62-
63- # Path to boost headers
6431INCLUDE_DIRECTORIES (SYSTEM ${Boost_INCLUDE_DIRS} )
6532
6633# --- PACKAGING ----------------------------------------------------------------
6734PKG_CONFIG_APPEND_LIBS(${PROJECT_NAME} )
6835
36+ ADD_SUBDIRECTORY (include /${PROJECT_NAME} )
6937ADD_SUBDIRECTORY (unittest)
7038
7139SETUP_PROJECT_FINALIZE()
0 commit comments