CMakeLists.txt 1.05 KB
Newer Older
Gabriele Buondonno's avatar
Gabriele Buondonno committed
1
2
3
4
5
6
7
8
#
# Copyright (c) 2019 CNRS
#

CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

INCLUDE(cmake/base.cmake)
INCLUDE(cmake/boost.cmake)
Gabriele Buondonno's avatar
Gabriele Buondonno committed
9
10
INCLUDE(cmake/eigen.cmake)
INCLUDE(cmake/test.cmake)
Gabriele Buondonno's avatar
Gabriele Buondonno committed
11

Guilhem Saurel's avatar
Guilhem Saurel committed
12
SET(PROJECT_NAMESPACE stack-of-tasks)
Gabriele Buondonno's avatar
Gabriele Buondonno committed
13
14
SET(PROJECT_NAME eiquadprog)
SET(PROJECT_DESCRIPTION "C++ reimplementation of eiquadprog")
Guilhem Saurel's avatar
Guilhem Saurel committed
15
SET(PROJECT_URL "https://gepgitlab.laas.fr/${PROJECT_NAMESPACE}/${PROJECT_NAME}")
16
SET(PROJECT_CUSTOM_HEADER_EXTENSION "hpp")
Gabriele Buondonno's avatar
Gabriele Buondonno committed
17
18
19
20
21

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

Gabriele Buondonno's avatar
Gabriele Buondonno committed
22
23
SETUP_PROJECT()

Gabriele Buondonno's avatar
Gabriele Buondonno committed
24
25
26
# ----------------------------------------------------
# --- DEPENDENCIES -----------------------------------
# ----------------------------------------------------
Gabriele Buondonno's avatar
Gabriele Buondonno committed
27
ADD_REQUIRED_DEPENDENCY("eigen3")
Gabriele Buondonno's avatar
Gabriele Buondonno committed
28

Guilhem Saurel's avatar
Guilhem Saurel committed
29
SET(BOOST_COMPONENTS unit_test_framework)
Gabriele Buondonno's avatar
Gabriele Buondonno committed
30
31
SEARCH_FOR_BOOST()
INCLUDE_DIRECTORIES(SYSTEM ${Boost_INCLUDE_DIRS})
Gabriele Buondonno's avatar
Gabriele Buondonno committed
32
33
34

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

Guilhem Saurel's avatar
Guilhem Saurel committed
36
ADD_SUBDIRECTORY(include/${PROJECT_NAME})
Gabriele Buondonno's avatar
Gabriele Buondonno committed
37
ADD_SUBDIRECTORY(unittest)
38
39

SETUP_PROJECT_FINALIZE()