|
1 | | -cmake_minimum_required(VERSION 3.5) |
| 1 | +cmake_minimum_required(VERSION 3.24) |
2 | 2 |
|
3 | 3 | project( |
4 | 4 | rcs_panda |
@@ -35,10 +35,6 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON) |
35 | 35 | # turn off libfranka tests |
36 | 36 | set(BUILD_TESTS OFF) |
37 | 37 | set(BUILD_EXAMPLES OFF) |
38 | | -set(RL_BUILD_DEMOS OFF) |
39 | | -set(RL_BUILD_RL_SG OFF) |
40 | | -set(RL_BUILD_TESTS OFF) |
41 | | -set(RL_BUILD_EXTRAS OFF) |
42 | 38 | set(BUILD_PYTHON_INTERFACE OFF) |
43 | 39 | set(BUILD_DOCUMENTATION OFF) |
44 | 40 |
|
@@ -67,8 +63,43 @@ FetchContent_Declare(Eigen3 |
67 | 63 | GIT_PROGRESS TRUE |
68 | 64 | EXCLUDE_FROM_ALL |
69 | 65 | ) |
| 66 | +# --- tinyxml2 --- |
| 67 | +FetchContent_Declare( |
| 68 | + tinyxml2 |
| 69 | + GIT_REPOSITORY https://github.com/leethomason/tinyxml2.git |
| 70 | + GIT_TAG 10.0.0 # Or the specific version you need |
| 71 | + GIT_PROGRESS TRUE |
| 72 | + EXCLUDE_FROM_ALL |
| 73 | +) |
| 74 | + |
| 75 | +# --- console_bridge --- |
| 76 | +FetchContent_Declare( |
| 77 | + console_bridge |
| 78 | + GIT_REPOSITORY https://github.com/ros/console_bridge.git |
| 79 | + GIT_TAG 1.0.2 # Standard version used in ROS 2 Humble |
| 80 | + GIT_PROGRESS TRUE |
| 81 | + EXCLUDE_FROM_ALL |
| 82 | +) |
| 83 | + |
| 84 | +# --- POCO C++ Libraries --- |
| 85 | +# POCO is a massive framework. Building the whole thing takes a long time. |
| 86 | +# We disable tests, examples, and heavy components you likely don't need for a robot control stack. |
| 87 | +set(ENABLE_TESTS OFF CACHE BOOL "Disable POCO tests" FORCE) |
| 88 | +set(ENABLE_DATA_MYSQL OFF CACHE BOOL "Disable POCO MySQL" FORCE) |
| 89 | +set(ENABLE_DATA_ODBC OFF CACHE BOOL "Disable POCO ODBC" FORCE) |
| 90 | +set(ENABLE_PAGECOMPILER OFF CACHE BOOL "Disable POCO PageCompiler" FORCE) |
| 91 | +set(ENABLE_PAGECOMPILER_FILE2PAGE OFF CACHE BOOL "" FORCE) |
| 92 | + |
| 93 | +FetchContent_Declare( |
| 94 | + Poco |
| 95 | + GIT_REPOSITORY https://github.com/pocoproject/poco.git |
| 96 | + GIT_TAG poco-1.13.3-release |
| 97 | + GIT_PROGRESS TRUE |
| 98 | + EXCLUDE_FROM_ALL |
| 99 | +) |
70 | 100 |
|
71 | | -FetchContent_MakeAvailable(libfranka pybind11 Eigen3) |
| 101 | +FetchContent_MakeAvailable(pybind11 Eigen3 tinyxml2 console_bridge Poco) |
| 102 | +FetchContent_MakeAvailable(libfranka) |
72 | 103 | set_target_properties(franka PROPERTIES CXX_STANDARD 17) |
73 | 104 |
|
74 | 105 | add_subdirectory(src_fr3) |
0 commit comments