CMakeLists.txt 1.16 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
9
10
#include(cmake/ros.cmake)
INCLUDE(cmake/base.cmake)

Olivier Stasse's avatar
Olivier Stasse committed
11
set(CXX_DISABLE_WERROR True)
Guilhem Saurel's avatar
Guilhem Saurel committed
12
13
14

COMPUTE_PROJECT_ARGS(PROJECT_ARGS LANGUAGES CXX)
PROJECT(${PROJECT_NAME} ${PROJECT_ARGS})
Hilario Tome's avatar
Hilario Tome committed
15

16
17
18
find_package(catkin REQUIRED)

catkin_package(
Guilhem Saurel's avatar
Guilhem Saurel committed
19
20
21
22
23
  #  INCLUDE_DIRS include
  #  LIBRARIES talos_description
  #  CATKIN_DEPENDS other_catkin_pkg
  #  DEPENDS system_lib
  )
24

25
26
# Find xml_reflection
ADD_REQUIRED_DEPENDENCY("urdfdom >= 0.2.9")
Olivier Stasse's avatar
Olivier Stasse committed
27
ADD_REQUIRED_DEPENDENCY("gazebo >= 7.0.0")
28
ADD_REQUIRED_DEPENDENCY(roscpp)
29

30
31
32
ADD_LIBRARY(SpringPlugin
  SHARED
  src/SpringPlugin.cc
Guilhem Saurel's avatar
Guilhem Saurel committed
33
  )
34
35
36
37
38
39
40
41
42
43

INSTALL(TARGETS
  SpringPlugin
  DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
  LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  )
PKG_CONFIG_USE_DEPENDENCY(SpringPlugin roscpp)
PKG_CONFIG_USE_DEPENDENCY(SpringPlugin gazebo)

FOREACH(dir config gazebo meshes robots urdf srdf launch)
44
45
  INSTALL(DIRECTORY ${dir}/
    DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir})
46
ENDFOREACH(dir)