-
Notifications
You must be signed in to change notification settings - Fork 0
/
choreonoid.cmake
78 lines (71 loc) · 2.07 KB
/
choreonoid.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
set(choreonoid_DEPENDS hrpsys-base)
set(CUSTOMIZERS "")
set(CUSTOMIZER_OPTIONS -DBODY_CUSTOMIZERS=${CUSTOMIZERS})
set(CMAKE_EXTRA_ARGS -DCHOREONOID_PLUGIN_LINK_USE_KEYWORD:BOOL=ON)
set(choreonoid_cmake_args
-DCMAKE_BUILD_TYPE=$<CONFIG>
${CUSTOMIZER_OPTIONS}
-DCMAKE_CXX_STANDARD=17
-DENABLE_CORBA=ON
-DBUILD_CORBA_PLUGIN=ON
-DBUILD_OPENRTM_PLUGIN=ON
-DUSE_BUILTIN_CAMERA_IMAGE_IDL=ON
-DBUILD_PCL_PLUGIN=ON
-DBUILD_OPENHRP_PLUGIN=ON
-DBUILD_GRXUI_PLUGIN=ON
-DBUILD_DRC_USER_INTERFACE_PLUGIN=ON
-DROBOT_HOSTNAME="$ENV{ROBOT_HOSTNAME}"
-DBUILD_ASSIMP_PLUGIN=OFF
-DUSE_PYBIND11=ON
-DUSE_PYTHON3=OFF
-DBUILD_BALANCER_PLUGIN=OFF
-DENABLE_PYTHON=ON
-DBUILD_PYTHON_SIM_SCRIPT_PLUGIN=OFF
-DBUILD_BOOST_PYTHON_MODULES=OFF
-DUSE_EXTERNAL_PYBIND11=ON
-DBUILD_PYTHON_PLUGIN=ON
-DBUILD_PYTHON_SIM_SCRIPT_PLUGIN=ON
-DBUILD_HRPSYS31_PLUGIN=ON
-DBUILD_ROBOT_ACCESS_PLUGIN=ON
${CMAKE_EXTRA_ARGS}
)
if(NOT USE_MC_RTC_APT_MIRROR)
AddProject(pybind11
GITHUB pybind/pybind11
GIT_TAG v2.9.2
CMAKE_ARGS -DPYBIND11_INSTALL=ON -DPYBIND11_TEST=OFF
)
list(APPEND choreonoid_DEPENDS pybind11)
endif()
AddProject(choreonoid
GITHUB choreonoid/choreonoid
GIT_TAG release-2.0 # origin/master caused a boost error (2024/06/05)
CMAKE_ARGS -DUSE_BUNDLED_PYBIND11=OFF ${choreonoid_cmake_args}
DEPENDS ${choreonoid_DEPENDS}
APT_PACKAGES choreonoid libcnoid-dev
)
if(USE_MC_RTC_APT_MIRROR)
return()
endif()
AddProjectPlugin(choreonoid-openrtm choreonoid
# When the pull request https://github.com/OpenRTM/choreonoid-openrtm/pull/12 is merged, it will be replaced with this repository.
# GITHUB OpenRTM/choreonoid-openrtm
GITHUB isri-aist/choreonoid-openrtm
GIT_TAG origin/master
SUBFOLDER ext
)
AddProjectPlugin(openhrp-plugin choreonoid
GITHUB isri-aist/openhrp-plugin
GIT_TAG origin/master
SUBFOLDER ext
)
AddProjectPlugin(grxui-plugin choreonoid
GITHUB isri-aist/grxui-plugin
GIT_TAG origin/master
SUBFOLDER ext
)
AddProjectPlugin(robot-access-plugin choreonoid
GITHUB choreonoid/robot-access-plugin
GIT_TAG origin/master
SUBFOLDER ext
)