Commit 5c3f67ff authored by Sreekanth Arikatla's avatar Sreekanth Arikatla

REFAC: Arrange the targets into respective folders

All example targets into 'Examples'
All the data retrieving targers into the 'Examples/Data'
All imstk libraries and uncrustify utility target into 'iMSKT'
Testing targets into 'Testing'
parent c360ad35
......@@ -122,3 +122,8 @@ ExternalProject_Add( ${PROJECT_NAME}
-D${PROJECT_NAME}_ENABLE_VR:BOOL=${${PROJECT_NAME}_ENABLE_VR}
DEPENDS ${${PROJECT_NAME}_DEPENDENCIES}
)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER iMSTK)
......@@ -93,6 +93,11 @@ macro(imstk_add_external_project extProj)
set(${extProj}_DIR ${${extProj}_BINARY_DIR})
#-----------------------------------------------------------------------------
# Add the target to ExternalDeps folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${extProj} PROPERTIES FOLDER ExternalDeps)
#-----------------------------------------------------------------------------
# If project already built on system
#-----------------------------------------------------------------------------
else()
......
......@@ -103,4 +103,11 @@ function(imstk_add_library target)
ARCHIVE DESTINATION ${iMSTK_INSTALL_LIB_DIR} COMPONENT Development
)
#-----------------------------------------------------------------------------
# Add the target to imstk folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${target} PROPERTIES FOLDER iMSTK)
endfunction()
......@@ -121,6 +121,11 @@ function(imstk_add_test target)
Threads::Threads
)
#-----------------------------------------------------------------------------
# Add the target to Testing folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${test_driver_executable} PROPERTIES FOLDER Testing)
#-----------------------------------------------------------------------------
# Create tests
#-----------------------------------------------------------------------------
......
......@@ -8,6 +8,11 @@
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
)
#-----------------------------------------------------------------------------
# Add the target to iMSTK folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (uncrustifyRun PROPERTIES FOLDER iMSTK)
if(BUILD_TESTING)
# Add test to check style using uncrustify
add_test(NAME uncrustifyCheck
......
......@@ -69,4 +69,9 @@ function(imstk_add_data target)
# Add a build target to populate the real data.
ExternalData_Add_Target(${target}ExternalData)
#-----------------------------------------------------------------------------
# Add the target to Examples/Data folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${target}ExternalData PROPERTIES FOLDER Examples/Data)
endfunction()
......@@ -30,6 +30,8 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
endif()
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
#-----------------------------------------------------------------------------
# Project build directories
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-Audio)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} AudioExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
......
......@@ -25,6 +25,11 @@ if(iMSTK_USE_OMNI)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} BoneDrillingExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
......
......@@ -24,6 +24,11 @@ if(iMSTK_USE_OMNI)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} CameraControllerExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
......
......@@ -27,6 +27,11 @@ add_executable(${PROJECT_NAME} ManualCDWithOctreeExample.cpp
../Triangle.cpp
../BunnyMesh.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Add shaders
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-DebugRendering)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} DebugRenderingExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-DeformableBody)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} DeformableBodyExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-ExtractSurface)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} ExtractSurfaceExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Add shaders
#-----------------------------------------------------------------------------
......
......@@ -25,6 +25,11 @@ if(iMSTK_USE_Vulkan)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} GUIOverlayExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-GeometryTransforms)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} GeometryTransformsExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-Graph)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} GraphExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-LineMesh)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} LineMeshExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Add shaders
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-MeshIO)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} MeshIOExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-MshVegaIO)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} MshVegaIOExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-NoRendering)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} noRenderingExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Add shaders
#-----------------------------------------------------------------------------
......
......@@ -24,6 +24,11 @@ if(iMSTK_USE_OMNI)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} ObjectControllerExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Add shaders
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-ObjectControllerDummyClient)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} ObjectCtrlDummyClientExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Add shaders
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-Octree)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} OctreeExample.cpp BunnyMesh.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Add shaders
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-PBDCloth)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} pbdClothExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Add shaders
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-PBDCollision-ManyDragons)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} PBDCollisionManyDragonsExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Add shaders
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-PBDCollision-OneDragon)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} PBDCollisionOneDragonExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Add shaders
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-PBDFluids)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} PBDFluidsExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-PBDVolume)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} PBDVolumeExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-PlotVectors)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} PlotVectorsExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-Rendering)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} RenderingExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-SPHFluid-BallDrop)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} SPHFluid-BallDrop.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-SPHFluid-BunnyShape)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} SPHFluid-BunnyShape.cpp Bunny.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-SPHFluid-HighViscousity)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} SPHFluid-HighViscousity.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-SceneManagement)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} SceneManagementExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-Screenshot)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} ScreenshotExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Add shaders
#-----------------------------------------------------------------------------
......
......@@ -23,6 +23,11 @@ project(Example-Viewer)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} ViewerExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Add shaders
#-----------------------------------------------------------------------------
......
......@@ -24,6 +24,11 @@ if(iMSTK_USE_OMNI)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} VirtualCouplingExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Add shaders
#-----------------------------------------------------------------------------
......
......@@ -24,6 +24,11 @@ if(iMSTK_USE_Vulkan)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} VulkanDecalsExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
......
......@@ -24,6 +24,11 @@ if(iMSTK_USE_Vulkan)
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} VulkanParticlesExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment