From 4462398714bc4a7344ddf157331e3fbb06ba4b29 Mon Sep 17 00:00:00 2001
From: Peter Kaiser <peter.kaiser@kit.edu>
Date: Wed, 10 Sep 2014 13:22:40 +0200
Subject: [PATCH] MotionControlGroup: Added jsoncpp dependency

---
 .../RobotAPI/statecharts/MotionControlGroup/CMakeLists.txt | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/source/RobotAPI/statecharts/MotionControlGroup/CMakeLists.txt b/source/RobotAPI/statecharts/MotionControlGroup/CMakeLists.txt
index 1206cb89a..1a26f99f4 100644
--- a/source/RobotAPI/statecharts/MotionControlGroup/CMakeLists.txt
+++ b/source/RobotAPI/statecharts/MotionControlGroup/CMakeLists.txt
@@ -2,14 +2,17 @@ armarx_component_set_name("MotionControlGroup")
 
 find_package(Eigen3 QUIET)
 find_package(Simox QUIET)
+find_package(jsoncpp QUIET)
 
 armarx_build_if(Eigen3_FOUND "Eigen3 not available")
 armarx_build_if(Simox_FOUND "Simox-VirtualRobot not available")
+armarx_build_if(jsoncpp_FOUND "jsoncpp not available")
 
-if (Eigen3_FOUND AND Simox_FOUND)
+if (Eigen3_FOUND AND Simox_FOUND AND jsoncpp_FOUND)
     include_directories(
         ${Eigen3_INCLUDE_DIR}
-        ${Simox_INCLUDE_DIRS})
+        ${Simox_INCLUDE_DIRS}
+        ${jsoncpp_INCLUDE_DIR})
 endif()
 
 set(COMPONENT_LIBS RobotAPICore RobotAPIInterfaces ArmarXInterfaces ArmarXCore ArmarXCoreStatechart ArmarXCoreObservers)
-- 
GitLab