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)
......@@ -91,6 +91,11 @@ macro(imstk_add_external_project extProj)
DEPENDS ${${extProj}_DEPENDENCIES} # from parsed argument
)
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
......
......@@ -102,5 +102,12 @@ function(imstk_add_library target)
LIBRARY DESTINATION ${iMSTK_INSTALL_LIB_DIR} COMPONENT RuntimeLibraries
ARCHIVE DESTINATION ${iMSTK_INSTALL_LIB_DIR} COMPONENT Development
)
#-----------------------------------------------------------------------------
# Add the target to imstk folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${target} PROPERTIES FOLDER iMSTK)
endfunction()
......@@ -120,6 +120,11 @@ function(imstk_add_test target)
${GoogleTest_LIBRARIES}
Threads::Threads
)
#-----------------------------------------------------------------------------
# Add the target to Testing folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${test_driver_executable} PROPERTIES FOLDER Testing)
#-----------------------------------------------------------------------------
# Create tests
......
......@@ -7,6 +7,11 @@
COMMENT "Run uncrustify - overwrites source files"
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
......
......@@ -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
#-----------------------------------------------------------------------------
......
......@@ -22,6 +22,11 @@ project(Example-ExtractSurface)
# Create executable
#-----------------------------------------------------------------------------
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
#-----------------------------------------------------------------------------
......
......@@ -22,6 +22,11 @@ project(Example-Screenshot)
# Create executable
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} ScreenshotExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Add shaders
......
......@@ -22,6 +22,11 @@ project(Example-Viewer)
# Create executable
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} ViewerExample.cpp)
#-----------------------------------------------------------------------------
# Add the target to Examples folder
#-----------------------------------------------------------------------------
SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES FOLDER Examples)
#-----------------------------------------------------------------------------
# Add shaders
......
......@@ -23,6 +23,11 @@ if(iMSTK_USE_OMNI)
# Create executable
#-----------------------------------------------------------------------------
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