CMakeLists.txt 1.72 KB
Newer Older
Gabriele Buondonno's avatar
Gabriele Buondonno committed
1
2
3
#
# Copyright (c) 2019 CNRS
#
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# This file is part of eiquadprog.
#
# eiquadprog is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# eiquadprog is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with eiquadprog.  If not, see <https://www.gnu.org/licenses/>.
#
Gabriele Buondonno's avatar
Gabriele Buondonno committed
19
20
21
22
23

CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

INCLUDE(cmake/base.cmake)
INCLUDE(cmake/boost.cmake)
Gabriele Buondonno's avatar
Gabriele Buondonno committed
24
25
INCLUDE(cmake/eigen.cmake)
INCLUDE(cmake/test.cmake)
Gabriele Buondonno's avatar
Gabriele Buondonno committed
26

Guilhem Saurel's avatar
Guilhem Saurel committed
27
SET(PROJECT_NAMESPACE stack-of-tasks)
Gabriele Buondonno's avatar
Gabriele Buondonno committed
28
29
SET(PROJECT_NAME eiquadprog)
SET(PROJECT_DESCRIPTION "C++ reimplementation of eiquadprog")
Guilhem Saurel's avatar
Guilhem Saurel committed
30
SET(PROJECT_URL "https://gepgitlab.laas.fr/${PROJECT_NAMESPACE}/${PROJECT_NAME}")
31
SET(PROJECT_CUSTOM_HEADER_EXTENSION "hpp")
Gabriele Buondonno's avatar
Gabriele Buondonno committed
32
33
34
35
36

# Disable -Werror on Unix for now.
SET(CXX_DISABLE_WERROR True)
SET(CMAKE_VERBOSE_MAKEFILE True)

Gabriele Buondonno's avatar
Gabriele Buondonno committed
37
38
SETUP_PROJECT()

Gabriele Buondonno's avatar
Gabriele Buondonno committed
39
40
41
# ----------------------------------------------------
# --- DEPENDENCIES -----------------------------------
# ----------------------------------------------------
Gabriele Buondonno's avatar
Gabriele Buondonno committed
42
ADD_REQUIRED_DEPENDENCY("eigen3")
Gabriele Buondonno's avatar
Gabriele Buondonno committed
43

Guilhem Saurel's avatar
Guilhem Saurel committed
44
SET(BOOST_COMPONENTS unit_test_framework)
Gabriele Buondonno's avatar
Gabriele Buondonno committed
45
46
SEARCH_FOR_BOOST()
INCLUDE_DIRECTORIES(SYSTEM ${Boost_INCLUDE_DIRS})
Gabriele Buondonno's avatar
Gabriele Buondonno committed
47
48
49

# --- PACKAGING ----------------------------------------------------------------
PKG_CONFIG_APPEND_LIBS(${PROJECT_NAME})
Gabriele Buondonno's avatar
Gabriele Buondonno committed
50

Guilhem Saurel's avatar
Guilhem Saurel committed
51
ADD_SUBDIRECTORY(include/${PROJECT_NAME})
Gabriele Buondonno's avatar
Gabriele Buondonno committed
52
ADD_SUBDIRECTORY(unittest)
53
54

SETUP_PROJECT_FINALIZE()