From 500ee4c45ddebcea7d0cc34a437969b4b25f1f82 Mon Sep 17 00:00:00 2001
From: jcarpent <jcarpent@laas.fr>
Date: Wed, 22 Apr 2015 16:25:05 +0200
Subject: [PATCH] [Marginal][CMake] Add missing headers in the virtual group of
 the project

---
 CMakeLists.txt     | 14 +++++++++++---
 src/CMakeLists.txt |  2 ++
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a3e22bec3..caf4f63d0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -78,7 +78,11 @@ SET(${PROJECT_NAME}_MULTIBODY_JOINT_HEADERS
   multibody/joint/joint-free-flyer.hpp
   multibody/joint/joint-variant.hpp
   multibody/joint/joint-generic.hpp
-)
+  ) 
+
+SET(${PROJECT_NAME}_MULTIBODY_PARSER_HEADERS
+  multibody/parser/sample-models.hpp
+  )
 
 SET(${PROJECT_NAME}_MULTIBODY_HEADERS
   multibody/constraint.hpp
@@ -86,7 +90,6 @@ SET(${PROJECT_NAME}_MULTIBODY_HEADERS
   multibody/joint.hpp
   multibody/model.hpp
   multibody/visitor.hpp
-  multibody/parser/sample-models.hpp
   )
 
 SET(${PROJECT_NAME}_ALGORITHM_HEADERS
@@ -122,16 +125,21 @@ SET(HEADERS
   ${${PROJECT_NAME}_TOOLS_HEADERS}
   ${${PROJECT_NAME}_SPATIAL_HEADERS}
   ${${PROJECT_NAME}_MULTIBODY_JOINT_HEADERS}
+  ${${PROJECT_NAME}_MULTIBODY_PARSER_HEADERS}
   ${${PROJECT_NAME}_MULTIBODY_HEADERS}
   ${${PROJECT_NAME}_ALGORITHM_HEADERS}
   ${${PROJECT_NAME}_SIMULATION_HEADERS}
   ${${PROJECT_NAME}_PYTHON_HEADERS}
   exception.hpp
   assert.hpp
-  )
+ )
 
 IF(URDFDOM_FOUND)
   LIST(APPEND HEADERS multibody/parser/urdf.hpp)
+  SET(${PROJECT_NAME}_MULTIBODY_PARSER_HEADERS
+    ${${PROJECT_NAME}_MULTIBODY_PARSER_HEADERS}
+    multibody/parser/urdf.hpp
+    )
 ENDIF(URDFDOM_FOUND)
 
 PKG_CONFIG_APPEND_LIBS (${PROJECT_NAME})
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a5c0258ac..4d7472d0d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -88,7 +88,9 @@ IF (UNIX )
     ADD_HEADERS_GROUP ("spatial" ${PROJECT_NAME}_SPATIAL_HEADERS )
     ADD_HEADERS_GROUP ("multibody" ${PROJECT_NAME}_MULTIBODY_HEADERS )
     ADD_HEADERS_SUB_GROUP ("multibody" "joint" ${PROJECT_NAME}_MULTIBODY_JOINT_HEADERS )
+    ADD_HEADERS_SUB_GROUP ("multibody" "parser" ${PROJECT_NAME}_MULTIBODY_PARSER_HEADERS )
     ADD_HEADERS_GROUP ("algorithm" ${PROJECT_NAME}_ALGORITHM_HEADERS )
+    ADD_HEADERS_GROUP ("simulation" ${PROJECT_NAME}_SIMULATION_HEADERS )
     ADD_HEADERS_GROUP ("python" ${PROJECT_NAME}_PYTHON_HEADERS )
 
 ENDIF ( )
-- 
GitLab