CMakeLists.txt 4 KB
Newer Older
Steve Tonneau's avatar
Steve Tonneau committed
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/>.

SET(LIBRARY_NAME ${PROJECT_NAME})
SET(IDL_SOURCES
	rbprmbuilder
)

23
24
INCLUDE(${HPP_CORBASERVER_CMAKE_PLUGIN})

Steve Tonneau's avatar
Steve Tonneau committed
25
26
27
28
29
OMNIIDL_INCLUDE_DIRECTORIES(
  ${HPP_CORBASERVER_DATAROOTDIR}/idl ${CMAKE_SOURCE_DIR}/idl
  )

INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/src)
Steve Tonneau's avatar
Steve Tonneau committed
30
FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/hpp/corbaserver/rbprm)
Steve Tonneau's avatar
Steve Tonneau committed
31

Steve Tonneau's avatar
Steve Tonneau committed
32
33
FOREACH(IDL ${IDL_SOURCES})
  GENERATE_IDL_CPP (hpp/corbaserver/rbprm/${IDL}
34
35
36
37
38
39
40
41
42
43
    ${CMAKE_SOURCE_DIR}/idl/hpp/corbaserver/rbprm
    HEADER_SUFFIX -idl.hh)
  GENERATE_IDL_PYTHON (${IDL}
    ${CMAKE_SOURCE_DIR}/idl/hpp/corbaserver/rbprm
    ENABLE_DOCSTRING
    STUBS hpp_stubs.rbprm
    ARGUMENTS
    -Wbmodules=hpp_idl
    -Wbextern=common:hpp_stubs
    )
Steve Tonneau's avatar
Steve Tonneau committed
44
45

  INSTALL(
46
    FILES ${CMAKE_CURRENT_BINARY_DIR}/hpp/corbaserver/rbprm/${IDL}-idl.hh
Steve Tonneau's avatar
Steve Tonneau committed
47
    DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/hpp/corbaserver/rbprm)
Steve Tonneau's avatar
Steve Tonneau committed
48
ENDFOREACH()
49
50
51
52
53
54
INSTALL(
  DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/hpp_idl/hpp/corbaserver/rbprm
  DESTINATION ${PYTHON_SITELIB}/hpp_idl/hpp/corbaserver)
INSTALL(
  DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/hpp_stubs/rbprm
  DESTINATION ${PYTHON_SITELIB}/hpp_stubs)
Steve Tonneau's avatar
Steve Tonneau committed
55

56
57
HPP_ADD_SERVER_PLUGIN(rbprm-corba
  SOURCES
58
  ${ALL_IDL_CPP_STUBS}
Steve Tonneau's avatar
Steve Tonneau committed
59
60
61
  rbprmbuilder.impl.cc
  rbprmbuilder.impl.hh
  server.cc
62
63
64
65
66
67
68

  PKG_CONFIG_DEPENDENCIES
  hpp-rbprm
  hpp-corbaserver
  omniORB4
  hpp-util
  hpp-rbprm)
Steve Tonneau's avatar
Steve Tonneau committed
69

70
71
ADD_CUSTOM_TARGET(generate_idl_cpp DEPENDS ${ALL_IDL_CPP_STUBS})
ADD_CUSTOM_TARGET(generate_idl_python DEPENDS ${ALL_IDL_PYTHON_STUBS})
72
73
74
ADD_DEPENDENCIES (rbprm-corba generate_idl_cpp)
ADD_DEPENDENCIES (rbprm-corba generate_idl_python)
TARGET_INCLUDE_DIRECTORIES(rbprm-corba PUBLIC ${CDD_INCLUDE_DIRS})
Steve Tonneau's avatar
Steve Tonneau committed
75
76
77

INSTALL(
  FILES
78
  ${CMAKE_CURRENT_SOURCE_DIR}/hpp/corbaserver/rbprm/__init__.py
Steve Tonneau's avatar
Steve Tonneau committed
79
80
81
82
83
84
  DESTINATION ${PYTHON_SITELIB}/hpp/corbaserver/rbprm
  )
INSTALL(
  FILES
	${CMAKE_CURRENT_SOURCE_DIR}/hpp/corbaserver/rbprm/client.py
	${CMAKE_CURRENT_SOURCE_DIR}/hpp/corbaserver/rbprm/rbprmbuilder.py
Steve Tonneau's avatar
Steve Tonneau committed
85
        ${CMAKE_CURRENT_SOURCE_DIR}/hpp/corbaserver/rbprm/rbprmfullbody.py
t steve's avatar
t steve committed
86
        ${CMAKE_CURRENT_SOURCE_DIR}/hpp/corbaserver/rbprm/rbprmstate.py
87
        ${CMAKE_CURRENT_SOURCE_DIR}/hpp/corbaserver/rbprm/state_alg.py
Steve Tonneau's avatar
Steve Tonneau committed
88
89
  DESTINATION ${PYTHON_SITELIB}/hpp/corbaserver/rbprm
  )
Steve Tonneau's avatar
Steve Tonneau committed
90
91
92
INSTALL(
  FILES
        ${CMAKE_CURRENT_SOURCE_DIR}/hpp/corbaserver/rbprm/tools/__init__.py
t steve's avatar
t steve committed
93
94
				${CMAKE_CURRENT_SOURCE_DIR}/hpp/corbaserver/rbprm/tools/generateROMs.py
				${CMAKE_CURRENT_SOURCE_DIR}/hpp/corbaserver/rbprm/tools/com_constraints.py
Steve Tonneau's avatar
Steve Tonneau committed
95
        ${CMAKE_CURRENT_SOURCE_DIR}/hpp/corbaserver/rbprm/tools/plot_analytics.py
96
        ${CMAKE_CURRENT_SOURCE_DIR}/hpp/corbaserver/rbprm/tools/affordance_centroids.py
97
        ${CMAKE_CURRENT_SOURCE_DIR}/hpp/corbaserver/rbprm/tools/cwc_trajectory.py
98
        ${CMAKE_CURRENT_SOURCE_DIR}/hpp/corbaserver/rbprm/tools/cwc_trajectory_helper.py
99
        ${CMAKE_CURRENT_SOURCE_DIR}/hpp/corbaserver/rbprm/tools/path_to_trajectory.py
100
        ${CMAKE_CURRENT_SOURCE_DIR}/hpp/corbaserver/rbprm/tools/obj_to_constraints.py
101
        ${CMAKE_CURRENT_SOURCE_DIR}/hpp/corbaserver/rbprm/tools/time_out.py
Steve Tonneau's avatar
Steve Tonneau committed
102
103
  DESTINATION ${PYTHON_SITELIB}/hpp/corbaserver/rbprm/tools
  )
Steve Tonneau's avatar
Steve Tonneau committed
104
105
# Stand alone corba server
ADD_EXECUTABLE (hpp-rbprm-server hpp-rbprm-corba.cc)
106
107

PKG_CONFIG_USE_DEPENDENCY(hpp-rbprm-server hpp-corbaserver)
108
PKG_CONFIG_USE_DEPENDENCY(hpp-rbprm-server hpp-pinocchio)
109

Steve Tonneau's avatar
Steve Tonneau committed
110
INSTALL (TARGETS hpp-rbprm-server DESTINATION ${CMAKE_INSTALL_BINDIR})