From 46ab4ff299291af3618097d0f04125c95eaae9b7 Mon Sep 17 00:00:00 2001 From: Sreekanth Arikatla <sreekanth.arikatla@kitware.com> Date: Thu, 5 Jul 2018 14:24:59 -0400 Subject: [PATCH] REFAC: Conditionally include SFML only for audio example --- Examples/CameraController/CMakeLists.txt | 8 +------- Examples/DeformableBody/CMakeLists.txt | 8 +------- Examples/ExtractSurface/CMakeLists.txt | 8 +------- Examples/GeometryTransforms/CMakeLists.txt | 8 +------- Examples/Graph/CMakeLists.txt | 8 +------- Examples/LaparoscopicToolController/CMakeLists.txt | 8 +------- Examples/MeshIO/CMakeLists.txt | 8 +------- Examples/MshVegaIO/CMakeLists.txt | 8 +------- Examples/ObjectController/CMakeLists.txt | 8 +------- Examples/PBDCloth/CMakeLists.txt | 8 +------- Examples/PBDCollision/CMakeLists.txt | 8 +------- Examples/PBDFluids/CMakeLists.txt | 8 +------- Examples/PBDVolume/CMakeLists.txt | 8 +------- Examples/Picking/CMakeLists.txt | 8 +------- Examples/PlotVectors/CMakeLists.txt | 8 +------- Examples/Rendering/CMakeLists.txt | 8 +------- Examples/SceneManagement/CMakeLists.txt | 8 +------- Examples/Screenshot/CMakeLists.txt | 8 +------- Examples/Viewer/CMakeLists.txt | 8 +------- Examples/VirtualCoupling/CMakeLists.txt | 8 +------- Examples/VulkanDecals/CMakeLists.txt | 8 +------- Examples/continuousCollisionDetection/CMakeLists.txt | 8 +------- 22 files changed, 22 insertions(+), 154 deletions(-) diff --git a/Examples/CameraController/CMakeLists.txt b/Examples/CameraController/CMakeLists.txt index 5f4e6e3c6..f68c4594f 100644 --- a/Examples/CameraController/CMakeLists.txt +++ b/Examples/CameraController/CMakeLists.txt @@ -27,13 +27,7 @@ if(iMSTK_USE_OMNI) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- - if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) - else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) - endif() + target_link_libraries(${PROJECT_NAME} SimulationManager) #----------------------------------------------------------------------------- # Associate external data diff --git a/Examples/DeformableBody/CMakeLists.txt b/Examples/DeformableBody/CMakeLists.txt index 7fa1bf50d..c70123780 100644 --- a/Examples/DeformableBody/CMakeLists.txt +++ b/Examples/DeformableBody/CMakeLists.txt @@ -26,13 +26,7 @@ add_executable(${PROJECT_NAME} DeformableBody.cpp) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- -if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) -else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) -endif() +target_link_libraries(${PROJECT_NAME} SimulationManager) #----------------------------------------------------------------------------- # Associate external data diff --git a/Examples/ExtractSurface/CMakeLists.txt b/Examples/ExtractSurface/CMakeLists.txt index c7d16aa39..6678f44cc 100644 --- a/Examples/ExtractSurface/CMakeLists.txt +++ b/Examples/ExtractSurface/CMakeLists.txt @@ -26,10 +26,4 @@ add_executable(${PROJECT_NAME} ExtractSurface.cpp) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- -if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) -else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) -endif() \ No newline at end of file +target_link_libraries(${PROJECT_NAME} SimulationManager) \ No newline at end of file diff --git a/Examples/GeometryTransforms/CMakeLists.txt b/Examples/GeometryTransforms/CMakeLists.txt index b9d31b72c..ae90d695c 100644 --- a/Examples/GeometryTransforms/CMakeLists.txt +++ b/Examples/GeometryTransforms/CMakeLists.txt @@ -26,13 +26,7 @@ add_executable(${PROJECT_NAME} GeometryTransforms.cpp) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- -if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) -else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) -endif() +target_link_libraries(${PROJECT_NAME} SimulationManager) #----------------------------------------------------------------------------- # Associate external data diff --git a/Examples/Graph/CMakeLists.txt b/Examples/Graph/CMakeLists.txt index 9375c5a69..efdb7e83c 100644 --- a/Examples/Graph/CMakeLists.txt +++ b/Examples/Graph/CMakeLists.txt @@ -26,13 +26,7 @@ add_executable(${PROJECT_NAME} Graph.cpp) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- -if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) -else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) -endif() +target_link_libraries(${PROJECT_NAME} SimulationManager) #----------------------------------------------------------------------------- # Associate external data diff --git a/Examples/LaparoscopicToolController/CMakeLists.txt b/Examples/LaparoscopicToolController/CMakeLists.txt index f1e0dee42..e56c2d528 100644 --- a/Examples/LaparoscopicToolController/CMakeLists.txt +++ b/Examples/LaparoscopicToolController/CMakeLists.txt @@ -27,13 +27,7 @@ if(iMSTK_USE_OMNI) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- - if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) - else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) - endif() + target_link_libraries(${PROJECT_NAME} SimulationManager) #----------------------------------------------------------------------------- # Associate external data diff --git a/Examples/MeshIO/CMakeLists.txt b/Examples/MeshIO/CMakeLists.txt index 1ed6c14a4..07b89a1d8 100644 --- a/Examples/MeshIO/CMakeLists.txt +++ b/Examples/MeshIO/CMakeLists.txt @@ -26,13 +26,7 @@ add_executable(${PROJECT_NAME} MeshIO.cpp) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- -if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) -else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) -endif() +target_link_libraries(${PROJECT_NAME} SimulationManager) #----------------------------------------------------------------------------- # Associate external data diff --git a/Examples/MshVegaIO/CMakeLists.txt b/Examples/MshVegaIO/CMakeLists.txt index 3e907e094..3370956d2 100644 --- a/Examples/MshVegaIO/CMakeLists.txt +++ b/Examples/MshVegaIO/CMakeLists.txt @@ -26,13 +26,7 @@ add_executable(${PROJECT_NAME} MshVegaIO.cpp) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- -if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) -else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) -endif() +target_link_libraries(${PROJECT_NAME} SimulationManager) #----------------------------------------------------------------------------- # Associate external data diff --git a/Examples/ObjectController/CMakeLists.txt b/Examples/ObjectController/CMakeLists.txt index c7340f183..766769a1a 100644 --- a/Examples/ObjectController/CMakeLists.txt +++ b/Examples/ObjectController/CMakeLists.txt @@ -27,12 +27,6 @@ if(iMSTK_USE_OMNI) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- - if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) - else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) - endif() + target_link_libraries(${PROJECT_NAME} SimulationManager) endif() \ No newline at end of file diff --git a/Examples/PBDCloth/CMakeLists.txt b/Examples/PBDCloth/CMakeLists.txt index d6ec305e7..a95d0cb18 100644 --- a/Examples/PBDCloth/CMakeLists.txt +++ b/Examples/PBDCloth/CMakeLists.txt @@ -26,10 +26,4 @@ add_executable(${PROJECT_NAME} pbdClothExample.cpp) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- -if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) -else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) -endif() \ No newline at end of file +target_link_libraries(${PROJECT_NAME} SimulationManager) \ No newline at end of file diff --git a/Examples/PBDCollision/CMakeLists.txt b/Examples/PBDCollision/CMakeLists.txt index 0416a2756..02b182ec6 100644 --- a/Examples/PBDCollision/CMakeLists.txt +++ b/Examples/PBDCollision/CMakeLists.txt @@ -26,13 +26,7 @@ add_executable(${PROJECT_NAME} PBDCollisionExample.cpp) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- -if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) -else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) -endif() +target_link_libraries(${PROJECT_NAME} SimulationManager) #----------------------------------------------------------------------------- # Associate external data diff --git a/Examples/PBDFluids/CMakeLists.txt b/Examples/PBDFluids/CMakeLists.txt index 689f335c7..d41028c42 100644 --- a/Examples/PBDFluids/CMakeLists.txt +++ b/Examples/PBDFluids/CMakeLists.txt @@ -26,13 +26,7 @@ add_executable(${PROJECT_NAME} PBDFluidsExample.cpp) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- -if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) -else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) -endif() +target_link_libraries(${PROJECT_NAME} SimulationManager) #----------------------------------------------------------------------------- # Associate external data diff --git a/Examples/PBDVolume/CMakeLists.txt b/Examples/PBDVolume/CMakeLists.txt index e97de6da2..916340e77 100644 --- a/Examples/PBDVolume/CMakeLists.txt +++ b/Examples/PBDVolume/CMakeLists.txt @@ -26,13 +26,7 @@ add_executable(${PROJECT_NAME} PBDVolumeExample.cpp) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- -if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) -else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) -endif() +target_link_libraries(${PROJECT_NAME} SimulationManager) #----------------------------------------------------------------------------- # Associate external data diff --git a/Examples/Picking/CMakeLists.txt b/Examples/Picking/CMakeLists.txt index e07902a0c..40cfd32a7 100644 --- a/Examples/Picking/CMakeLists.txt +++ b/Examples/Picking/CMakeLists.txt @@ -28,13 +28,7 @@ if(iMSTK_USE_OMNI) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- - if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) - else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) - endif() + target_link_libraries(${PROJECT_NAME} SimulationManager) #----------------------------------------------------------------------------- # Associate external data diff --git a/Examples/PlotVectors/CMakeLists.txt b/Examples/PlotVectors/CMakeLists.txt index 7b5b1b8fc..3b7800a85 100644 --- a/Examples/PlotVectors/CMakeLists.txt +++ b/Examples/PlotVectors/CMakeLists.txt @@ -26,10 +26,4 @@ add_executable(${PROJECT_NAME} PlotVectors.cpp) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- -if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) -else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) -endif() \ No newline at end of file +target_link_libraries(${PROJECT_NAME} SimulationManager) \ No newline at end of file diff --git a/Examples/Rendering/CMakeLists.txt b/Examples/Rendering/CMakeLists.txt index 2d29711e7..194408c39 100644 --- a/Examples/Rendering/CMakeLists.txt +++ b/Examples/Rendering/CMakeLists.txt @@ -26,13 +26,7 @@ add_executable(${PROJECT_NAME} Rendering.cpp) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- -if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) -else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) -endif() +target_link_libraries(${PROJECT_NAME} SimulationManager) #----------------------------------------------------------------------------- # Associate external data diff --git a/Examples/SceneManagement/CMakeLists.txt b/Examples/SceneManagement/CMakeLists.txt index a54086cdc..3f8262a91 100644 --- a/Examples/SceneManagement/CMakeLists.txt +++ b/Examples/SceneManagement/CMakeLists.txt @@ -26,10 +26,4 @@ add_executable(${PROJECT_NAME} SceneManagement.cpp) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- -if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) -else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) -endif() \ No newline at end of file +target_link_libraries(${PROJECT_NAME} SimulationManager) \ No newline at end of file diff --git a/Examples/Screenshot/CMakeLists.txt b/Examples/Screenshot/CMakeLists.txt index cb678dba6..7eefe2a49 100644 --- a/Examples/Screenshot/CMakeLists.txt +++ b/Examples/Screenshot/CMakeLists.txt @@ -26,10 +26,4 @@ add_executable(${PROJECT_NAME} Screenshot.cpp) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- -if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) -else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) -endif() \ No newline at end of file +target_link_libraries(${PROJECT_NAME} SimulationManager) \ No newline at end of file diff --git a/Examples/Viewer/CMakeLists.txt b/Examples/Viewer/CMakeLists.txt index fefa43f2a..8a7865210 100644 --- a/Examples/Viewer/CMakeLists.txt +++ b/Examples/Viewer/CMakeLists.txt @@ -26,10 +26,4 @@ add_executable(${PROJECT_NAME} Viewer.cpp) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- -if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) -else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) -endif() \ No newline at end of file +target_link_libraries(${PROJECT_NAME} SimulationManager) \ No newline at end of file diff --git a/Examples/VirtualCoupling/CMakeLists.txt b/Examples/VirtualCoupling/CMakeLists.txt index 50ce67e81..d24870ebe 100644 --- a/Examples/VirtualCoupling/CMakeLists.txt +++ b/Examples/VirtualCoupling/CMakeLists.txt @@ -27,12 +27,6 @@ if(iMSTK_USE_OMNI) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- - if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) - else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) - endif() + target_link_libraries(${PROJECT_NAME} SimulationManager) endif() \ No newline at end of file diff --git a/Examples/VulkanDecals/CMakeLists.txt b/Examples/VulkanDecals/CMakeLists.txt index 9fd6f068b..d1d62e8c0 100644 --- a/Examples/VulkanDecals/CMakeLists.txt +++ b/Examples/VulkanDecals/CMakeLists.txt @@ -26,13 +26,7 @@ add_executable(${PROJECT_NAME} VulkanDecals.cpp) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- -if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) -else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) -endif() +target_link_libraries(${PROJECT_NAME} SimulationManager) #----------------------------------------------------------------------------- # Associate external data diff --git a/Examples/continuousCollisionDetection/CMakeLists.txt b/Examples/continuousCollisionDetection/CMakeLists.txt index 857e8a56c..ec9ccc8c8 100644 --- a/Examples/continuousCollisionDetection/CMakeLists.txt +++ b/Examples/continuousCollisionDetection/CMakeLists.txt @@ -26,13 +26,7 @@ add_executable(${PROJECT_NAME} continuousCollisionDetection.cpp) #----------------------------------------------------------------------------- # Link libraries to executable #----------------------------------------------------------------------------- -if(UNIX) - target_link_libraries(${PROJECT_NAME} - SimulationManager) -else() - target_link_libraries(${PROJECT_NAME} - SimulationManager) -endif() +target_link_libraries(${PROJECT_NAME} SimulationManager) #----------------------------------------------------------------------------- # Associate external data -- GitLab