CMakeLists.txt 2.03 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright (c) 2012 CNRS
# Author: Florent Lamiraux
#
# This file is part of hpp-rbprm-corba.
# hpp-rbprm-corba is free software: you can redistribute it
# and/or modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation, either version
# 3 of the License, or (at your option) any later version.
#
# hpp-rbprm-corba is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Lesser Public License for more details.  You should have
# received a copy of the GNU Lesser General Public License along with
# hpp-rbprm-corba.  If not, see
# <http://www.gnu.org/licenses/>.

# Requires at least CMake 2.6 to configure the package.
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

SET(CXX_DISABLE_WERROR true)

23
24
25
26
SET(PROJECT_NAME anymal-rbprm)
SET(PROJECT_DESCRIPTION "Database for anymal robot using hpp-rbprm")
SET(PROJECT_URL "")

27
28
29
30
31
32
33
34
35
36
INCLUDE(cmake/base.cmake)
INCLUDE(cmake/idl.cmake)
INCLUDE(cmake/python.cmake)


SET(CUSTOM_HEADER_DIR "hpp/anymal-rbprm")

SETUP_PROJECT ()

# search for python
37
FINDPYTHON()
38
39
40
41
42
43
44
45
46
47
48
49

PKG_CONFIG_APPEND_LIBS(${PROJECT_NAME})

SET(CATKIN_PACKAGE_SHARE_DESTINATION
  ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME})
  
  
SET(CATKIN_PACKAGE_SHARE_DESTINATION
  ${CMAKE_INSTALL_DATAROOTDIR}/anymal-rbprm)
  
  
install(DIRECTORY
Pierre Fernbach's avatar
Pierre Fernbach committed
50
  data/
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
  )
  
  
install (FILES
  src/hpp/corbaserver/rbprm/anymal/robot.py
  src/hpp/corbaserver/rbprm/anymal/__init__.py
  DESTINATION ${PYTHON_SITELIB}/hpp/corbaserver/rbprm/anymal)


install (FILES
  src/hpp/corbaserver/rbprm/anymal_contact6D/robot.py
  src/hpp/corbaserver/rbprm/anymal_contact6D/__init__.py
  DESTINATION ${PYTHON_SITELIB}/hpp/corbaserver/rbprm/anymal_contact6D)

install (FILES
  src/hpp/corbaserver/rbprm/anymal_abstract/robot.py
  src/hpp/corbaserver/rbprm/anymal_abstract/__init__.py
  DESTINATION ${PYTHON_SITELIB}/hpp/corbaserver/rbprm/anymal_abstract)


SETUP_PROJECT_FINALIZE()