From f9a0eca5a8c71218bbefa53d7bcee463a952a492 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Tue, 21 Aug 2012 12:43:31 +0200
Subject: [PATCH] All targets in Gui-subdirectory are now also in
 VS-directories.

---
 Gui/Base/CMakeLists.txt                 | 2 ++
 Gui/DataExplorer.cmake                  | 2 ++
 Gui/DataView/CMakeLists.txt             | 2 ++
 Gui/DataView/DiagramView/CMakeLists.txt | 2 ++
 Gui/DataView/StratView/CMakeLists.txt   | 4 ++--
 Gui/OpenSG/CMakeLists.txt               | 4 +++-
 Gui/Vrpn/CMakeLists.txt                 | 2 ++
 Gui/VtkAct/CMakeLists.txt               | 2 ++
 Gui/VtkVis/CMakeLists.txt               | 2 ++
 9 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/Gui/Base/CMakeLists.txt b/Gui/Base/CMakeLists.txt
index af1ca87ef2a..36023d4d249 100644
--- a/Gui/Base/CMakeLists.txt
+++ b/Gui/Base/CMakeLists.txt
@@ -55,3 +55,5 @@ add_library( QtBase STATIC
 )
 
 target_link_libraries( QtBase ${QT_LIBRARIES} )
+
+set_property(TARGET QtBase PROPERTY FOLDER "DataExplorer")
\ No newline at end of file
diff --git a/Gui/DataExplorer.cmake b/Gui/DataExplorer.cmake
index 72d0b260189..2a79c966ddc 100644
--- a/Gui/DataExplorer.cmake
+++ b/Gui/DataExplorer.cmake
@@ -128,6 +128,8 @@ IF(OGS_USE_VRPN)
 	TARGET_LINK_LIBRARIES( ogs-gui ${VRPN_LIBRARIES} OgsVrpn )
 ENDIF()
 
+set_property(TARGET ogs-gui PROPERTY FOLDER "DataExplorer")
+
 ###################
 ### VRED plugin ###
 ###################
diff --git a/Gui/DataView/CMakeLists.txt b/Gui/DataView/CMakeLists.txt
index 9aca5be01fd..1ecd5e2d0b9 100644
--- a/Gui/DataView/CMakeLists.txt
+++ b/Gui/DataView/CMakeLists.txt
@@ -186,3 +186,5 @@ ENDIF () # Shapelib_FOUND
 IF (libgeotiff_FOUND)
 	TARGET_LINK_LIBRARIES( QtDataView ${libgeotiff_LIBRARIES} )
 ENDIF () # libgeotiff_FOUND
+
+set_property(TARGET QtDataView PROPERTY FOLDER "DataExplorer")
diff --git a/Gui/DataView/DiagramView/CMakeLists.txt b/Gui/DataView/DiagramView/CMakeLists.txt
index 727f83a4373..839433bff9d 100644
--- a/Gui/DataView/DiagramView/CMakeLists.txt
+++ b/Gui/DataView/DiagramView/CMakeLists.txt
@@ -69,3 +69,5 @@ target_link_libraries( DiagramView
 	${QT_LIBRARIES}
 	GeoLib
 )
+
+set_property(TARGET DiagramView PROPERTY FOLDER "DataExplorer")
diff --git a/Gui/DataView/StratView/CMakeLists.txt b/Gui/DataView/StratView/CMakeLists.txt
index b69319b85f9..6ee9a5fff88 100644
--- a/Gui/DataView/StratView/CMakeLists.txt
+++ b/Gui/DataView/StratView/CMakeLists.txt
@@ -43,8 +43,6 @@ include_directories(
 # Put moc files in a project folder
 source_group("Moc Files" REGULAR_EXPRESSION moc_*)
 
-
-
 # Create the library
 #add_executable( StratView
 add_library( StratView STATIC
@@ -61,3 +59,5 @@ target_link_libraries( StratView
 	BaseLib
 	GeoLib
 )
+
+set_property(TARGET StratView PROPERTY FOLDER "DataExplorer")
diff --git a/Gui/OpenSG/CMakeLists.txt b/Gui/OpenSG/CMakeLists.txt
index c3b338644e6..c0bccd811f4 100644
--- a/Gui/OpenSG/CMakeLists.txt
+++ b/Gui/OpenSG/CMakeLists.txt
@@ -22,4 +22,6 @@ ADD_LIBRARY( OgsOpenSG STATIC
 	${HEADERS}
 )
 
-USE_OPENSG(OgsOpenSG)
\ No newline at end of file
+USE_OPENSG(OgsOpenSG)
+
+set_property(TARGET OgsOpenSG PROPERTY FOLDER "DataExplorer")
\ No newline at end of file
diff --git a/Gui/Vrpn/CMakeLists.txt b/Gui/Vrpn/CMakeLists.txt
index 7828b4e62bc..6a24ced8c0d 100644
--- a/Gui/Vrpn/CMakeLists.txt
+++ b/Gui/Vrpn/CMakeLists.txt
@@ -60,3 +60,5 @@ ADD_LIBRARY( OgsVrpn STATIC
 #TARGET_LINK_LIBRARIES( OgsVrpn
 #	${QT_LIBRARIES}
 #)
+
+SET_PROPERTY(TARGET OgsVrpn PROPERTY FOLDER "DataExplorer")
\ No newline at end of file
diff --git a/Gui/VtkAct/CMakeLists.txt b/Gui/VtkAct/CMakeLists.txt
index 70c0b11b427..6351e970150 100644
--- a/Gui/VtkAct/CMakeLists.txt
+++ b/Gui/VtkAct/CMakeLists.txt
@@ -52,3 +52,5 @@ add_library( VtkAct STATIC
 )
 
 target_link_libraries( VtkAct ${QT_LIBRARIES} )
+
+set_property(TARGET VtkAct PROPERTY FOLDER "DataExplorer")
\ No newline at end of file
diff --git a/Gui/VtkVis/CMakeLists.txt b/Gui/VtkVis/CMakeLists.txt
index c4a81131151..1e94ce27c6b 100644
--- a/Gui/VtkVis/CMakeLists.txt
+++ b/Gui/VtkVis/CMakeLists.txt
@@ -169,3 +169,5 @@ IF (OGS_USE_OPENSG)
 	USE_OPENSG(VtkVis)
 	INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/Gui/OpenSG )
 ENDIF (OGS_USE_OPENSG)
+
+set_property(TARGET VtkVis PROPERTY FOLDER "DataExplorer")
\ No newline at end of file
-- 
GitLab