File tree Expand file tree Collapse file tree 1 file changed +23
-10
lines changed Expand file tree Collapse file tree 1 file changed +23
-10
lines changed Original file line number Diff line number Diff line change 1+
2+ find_package (SISL)
3+
4+ set (sisl_hpp "" )
5+ set (sisl_cpp "" )
6+
7+ if (SISL_FOUND)
8+ set (sisl_hpp "Spline.hpp" )
9+ set (sisl_cpp "Spline.cpp" )
10+ else ()
11+ message (WARNING "SISL not found. Compiling without spline support!" )
12+ endif ()
13+
114rock_library(
2- base-types
15+ base-types
316 Angle.cpp
417 JointLimitRange.cpp
518 JointLimits.cpp
@@ -8,7 +21,7 @@ rock_library(
821 JointTransform.cpp
922 Pose.cpp
1023 Pressure.cpp
11- Spline.cpp
24+ ${sisl_cpp}
1225 Temperature.cpp
1326 Time.cpp
1427 TimeMark.cpp
@@ -48,10 +61,10 @@ rock_library(
4861 Point.hpp
4962 Pose.hpp
5063 Pressure.hpp
51- Singleton.hpp
52- Spline.hpp
64+ Singleton.hpp
5365 Temperature.hpp
5466 Time.hpp
67+ ${sisl_hpp}
5568 TimeMark.hpp
5669 Timeout .hpp
5770 Trajectory.hpp
@@ -63,7 +76,7 @@ rock_library(
6376 commands/Motion2D.hpp
6477 commands/Speed6D.hpp
6578 commands/LinearAngular6DCommand.hpp
66- logging/logging_iostream_style.h
79+ logging/logging_iostream_style.h
6780 logging/logging_printf_style.h
6881 samples/BodyState.hpp
6982 samples/CommandSamples.hpp
@@ -84,15 +97,15 @@ rock_library(
8497 samples/Wrench.hpp
8598 samples/Wrenches.hpp
8699 templates/TimeStamped.hpp
87- DEPS_CMAKE
88- SISL
89- DEPS_PKGCONFIG
100+ DEPS_PKGCONFIG
90101 base-logging
91102 eigen3
92103)
93104
94- install (FILES ${CMAKE_SOURCE_DIR} /src/Spline.hpp
95- DESTINATION include /base/geometry)
105+ if (SISL_FOUND)
106+ install (FILES ${CMAKE_SOURCE_DIR} /src/Spline.hpp
107+ DESTINATION include /base/geometry)
108+ endif ()
96109
97110configure_file (base-lib.pc.in ${CMAKE_BINARY_DIR} /base-lib.pc @ONLY)
98111install (FILES ${CMAKE_BINARY_DIR} /base-lib.pc DESTINATION lib/pkgconfig)
You can’t perform that action at this time.
0 commit comments