CMakeLists.txt 1.5 KB
Newer Older
Guilhem Saurel's avatar
Guilhem Saurel committed
1
2
3
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

INCLUDE(cmake/base.cmake)
Guilhem Saurel's avatar
Guilhem Saurel committed
4
INCLUDE(cmake/test.cmake)
5
INCLUDE(cmake/python.cmake)
Guilhem Saurel's avatar
Guilhem Saurel committed
6

7
# Set up project properties
Guilhem Saurel's avatar
Guilhem Saurel committed
8
SET(PROJECT_NAMESPACE gepetto)
Guilhem Saurel's avatar
Guilhem Saurel committed
9
10
SET(PROJECT_NAME example-robot-data)
SET(PROJECT_DESCRIPTION "Set of robot URDFs for benchmarking and developed examples.")
Guilhem Saurel's avatar
Guilhem Saurel committed
11
SET(PROJECT_URL https://gepgitlab.laas.fr/${PROJECT_NAMESPACE}/${PROJECT_NAME})
Guilhem Saurel's avatar
Guilhem Saurel committed
12

13
14
STRING(REGEX REPLACE "-" "_" PY_NAME ${PROJECT_NAME})

15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Print initial message
MESSAGE("${PROJECT_DESCRIPTION}, version ${PROJECT_VERSION}")
MESSAGE("Copyright (C) 2018-2019 CNRS-LAAS")
MESSAGE("All rights reserved.")
MESSAGE("Released under the BSD 3-Clause License.")

# Set a default build type to 'Release' if none was specified
IF(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
  MESSAGE(STATUS "Setting build type to 'Release' as none was specified.")
  SET(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
  # Set the possible values of build type for cmake-gui
  SET_PROPERTY(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
ENDIF()

Guilhem Saurel's avatar
Guilhem Saurel committed
29
30
SETUP_PROJECT()

31
32
33
34
ADD_REQUIRED_DEPENDENCY("pinocchio >= 2.1.0")

FINDPYTHON()

35
INSTALL(DIRECTORY hyq_description DESTINATION share/${PROJECT_NAME})
36
INSTALL(DIRECTORY icub_description DESTINATION share/${PROJECT_NAME})
37
INSTALL(DIRECTORY talos_data DESTINATION share/${PROJECT_NAME})
38
INSTALL(DIRECTORY tiago_description DESTINATION share/${PROJECT_NAME})
Guilhem Saurel's avatar
Guilhem Saurel committed
39

40
ADD_SUBDIRECTORY(${PY_NAME})
Guilhem Saurel's avatar
Guilhem Saurel committed
41
42
ADD_SUBDIRECTORY(unittest)

Guilhem Saurel's avatar
Guilhem Saurel committed
43
SETUP_PROJECT_FINALIZE()