From 8b29c86d787cd420f00cd900a89b44145f32408b Mon Sep 17 00:00:00 2001
From: Mirko Waechter <mirko.waechter@kit.edu>
Date: Thu, 2 Jul 2015 16:53:45 +0200
Subject: [PATCH] added libraries to DMPComponent

---
 .../components/DMPComponent/CMakeLists.txt    | 20 ++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/source/RobotAPI/components/DMPComponent/CMakeLists.txt b/source/RobotAPI/components/DMPComponent/CMakeLists.txt
index dbd7fe0d0..e6d92024f 100644
--- a/source/RobotAPI/components/DMPComponent/CMakeLists.txt
+++ b/source/RobotAPI/components/DMPComponent/CMakeLists.txt
@@ -1,15 +1,21 @@
 armarx_component_set_name("DMPComponent")
 
-#find_package(MyLib QUIET)
-#armarx_build_if(MyLib_FOUND "MyLib not available")
-#
+find_package(DMP QUIET)
+armarx_build_if(DMP_FOUND "MyLib not available")
+
+find_package(MMMCore QUIET)
+armarx_build_if(MMMCore_FOUND "MMMCore not available")
+
+find_package(Eigen3 QUIET)
+armarx_build_if(Eigen3_FOUND "Eigen3 not available")
+
 # all include_directories must be guarded by if(Xyz_FOUND)
 # for multiple libraries write: if(X_FOUND AND Y_FOUND)....
-#if(MyLib_FOUND)
-#    include_directories(${MyLib_INCLUDE_DIRS})
-#endif()
+if(DMP_FOUND AND MMMCore_FOUND AND Eigen3_FOUND)
+    include_directories(${Eigen3_INCLUDE_DIR} ${DMP_INCLUDE_DIRS} ${MMMCORE_INCLUDE_DIRS})
+endif()
 
-set(COMPONENT_LIBS ArmarXInterfaces ArmarXCore)
+set(COMPONENT_LIBS ArmarXInterfaces ArmarXCore ${DMP_LIBRARIES} ${MMMCORE_LIBRARIES})
 
 set(SOURCES
 ./DMPComponent.cpp
-- 
GitLab