CMakeLists.txt 1.14 KB
Newer Older
1
2
3
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.3)
INCLUDE(cmake/base.cmake)
#include(cmake/ros.cmake)
Hilario Tome's avatar
Hilario Tome committed
4

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

Olivier Stasse's avatar
Olivier Stasse committed
10
set(CXX_DISABLE_WERROR True)
11
SETUP_PROJECT()
Hilario Tome's avatar
Hilario Tome committed
12

13
14
15
16
17
18
19
20
21
find_package(catkin REQUIRED)

catkin_package(
#  INCLUDE_DIRS include
#  LIBRARIES talos_description
#  CATKIN_DEPENDS other_catkin_pkg
#  DEPENDS system_lib
)

22
23
# Find xml_reflection
ADD_REQUIRED_DEPENDENCY("urdfdom >= 0.2.9")
24
25
ADD_REQUIRED_DEPENDENCY("gazebo >= 7.12.0")
ADD_REQUIRED_DEPENDENCY(roscpp)
26

27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
SET(LIBRARY_NAME ${PROJECT_NAME})

ADD_LIBRARY(SpringPlugin
  SHARED
  src/SpringPlugin.cc
)

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)
43
44
  INSTALL(DIRECTORY ${dir}/
    DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir})
45
46
ENDFOREACH(dir)

Olivier Stasse's avatar
Olivier Stasse committed
47
SETUP_PROJECT_FINALIZE()