CMakeLists.txt 1.34 KB
Newer Older
1
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.3)
Olivier Stasse's avatar
Olivier Stasse committed
2

Guilhem Saurel's avatar
Guilhem Saurel committed
3
SET(PROJECT_ORG pyrene-dev)
4
SET(PROJECT_NAME talos_data)
5
SET(PROJECT_DESCRIPTION "Talos urdf model, srdf model and other data")
Guilhem Saurel's avatar
Guilhem Saurel committed
6
SET(PROJECT_URL "https://gepgitlab.laas.fr/${PROJECT_ORG}/${PROJECT_NAME}")
Hilario Tome's avatar
Hilario Tome committed
7

Olivier Stasse's avatar
Olivier Stasse committed
8
SET(PROJECT_USE_CMAKE_EXPORT TRUE)
Guilhem Saurel's avatar
Guilhem Saurel committed
9
10
SET(CXX_DISABLE_WERROR True)
SET(CMAKE_CXX_STANDARD 11)
Olivier Stasse's avatar
Olivier Stasse committed
11

Olivier Stasse's avatar
Olivier Stasse committed
12
13
14
#include(cmake/ros.cmake)
INCLUDE(cmake/base.cmake)

Olivier Stasse's avatar
Olivier Stasse committed
15
# Specify the project.
Guilhem Saurel's avatar
Guilhem Saurel committed
16
17
COMPUTE_PROJECT_ARGS(PROJECT_ARGS LANGUAGES CXX)
PROJECT(${PROJECT_NAME} ${PROJECT_ARGS})
Hilario Tome's avatar
Hilario Tome committed
18

Olivier Stasse's avatar
Olivier Stasse committed
19
20
find_package(catkin REQUIRED COMPONENTS
  roscpp)
21
22

catkin_package(
Olivier Stasse's avatar
Olivier Stasse committed
23
24
  #  INCLUDE_DIRS include
  #  LIBRARIES talos_description
25
  #  CATKIN_DEPENDS roscpp
Guilhem Saurel's avatar
Guilhem Saurel committed
26
27
  #  DEPENDS system_lib
  )
28

29
# Find xml_reflection
Olivier Stasse's avatar
Olivier Stasse committed
30
ADD_PROJECT_DEPENDENCY(urdfdom REQUIRED)
Olivier Stasse's avatar
Olivier Stasse committed
31
ADD_PROJECT_DEPENDENCY(gazebo REQUIRED)
Guilhem Saurel's avatar
Guilhem Saurel committed
32
ADD_COMPILE_DEPENDENCY(roscpp)
33

Olivier Stasse's avatar
Olivier Stasse committed
34
ADD_LIBRARY(${PROJECT_NAME}
35
36
  SHARED
  src/SpringPlugin.cc
Guilhem Saurel's avatar
Guilhem Saurel committed
37
38
39
40
  )

TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} PRIVATE ${GAZEBO_INCLUDE_DIRS})
TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} PRIVATE ${catkin_INCLUDE_DIRS})
41
42

INSTALL(TARGETS
Olivier Stasse's avatar
Olivier Stasse committed
43
  ${PROJECT_NAME}
Guilhem Saurel's avatar
Guilhem Saurel committed
44
  EXPORT ${TARGETS_EXPORT_NAME}
45
46
47
  DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
  LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  )
Olivier Stasse's avatar
Olivier Stasse committed
48

49
FOREACH(dir config gazebo meshes robots urdf srdf launch)
50
51
  INSTALL(DIRECTORY ${dir}/
    DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir})
52
ENDFOREACH(dir)