-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
36 lines (27 loc) · 952 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 2020, CNRS
# See LICENSE file.
CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
# Project properties
SET(PROJECT_ORG loco-3d)
SET(PROJECT_NAME solo-collisions)
SET(PROJECT_DESCRIPTION "avoid autocollisions on the solo robot")
SET(PROJECT_URL "https://github.com/${PROJECT_ORG}/${PROJECT_NAME}")
# Project configuration
SET(PROJECT_USE_CMAKE_EXPORT TRUE)
# JRL-cmakemodule setup
INCLUDE(cmake/base.cmake)
# Project definition
COMPUTE_PROJECT_ARGS(PROJECT_ARGS LANGUAGES CXX)
PROJECT(${PROJECT_NAME} ${PROJECT_ARGS})
# Project dependencies
SET(CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
${CMAKE_SOURCE_DIR}/cmake-modules/)
ADD_PROJECT_DEPENDENCY(pinocchio REQUIRED)
ADD_PROJECT_DEPENDENCY(CppAD REQUIRED)
ADD_PROJECT_DEPENDENCY(CppADCodeGen REQUIRED)
ADD_PROJECT_DEPENDENCY(Eigen3 REQUIRED)
# Main Library
ADD_LIBRARY(${PROJECT_NAME} INTERFACE)
INSTALL(TARGETS ${PROJECT_NAME} EXPORT ${TARGETS_EXPORT_NAME} DESTINATION lib)
ADD_SUBDIRECTORY(src)