Skip to content
Snippets Groups Projects
Commit 316e2ee8 authored by Sreekanth Arikatla's avatar Sreekanth Arikatla
Browse files

COMP: Modify cmake code to conditionally build device examples

parent 052835d6
No related branches found
No related tags found
No related merge requests found
......@@ -16,28 +16,32 @@
#
###########################################################################
project(Example-BoneDrilling)
if(iMSTK_USE_OMNI)
#-----------------------------------------------------------------------------
# Create executable
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} BoneDrilling.cpp)
project(Example-BoneDrilling)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
if(UNIX)
target_link_libraries(${PROJECT_NAME}
SimulationManager)
else()
target_link_libraries(${PROJECT_NAME}
SimulationManager
SFML)
endif()
#-----------------------------------------------------------------------------
# Associate external data
#-----------------------------------------------------------------------------
list(APPEND FILE_LIST
asianDragon/,REGEX:.*)
imstk_add_data(${PROJECT_NAME} ${FILE_LIST})
\ No newline at end of file
#-----------------------------------------------------------------------------
# Create executable
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} BoneDrilling.cpp)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
if(UNIX)
target_link_libraries(${PROJECT_NAME}
SimulationManager)
else()
target_link_libraries(${PROJECT_NAME}
SimulationManager
SFML)
endif()
#-----------------------------------------------------------------------------
# Associate external data
#-----------------------------------------------------------------------------
list(APPEND FILE_LIST
asianDragon/,REGEX:.*)
imstk_add_data(${PROJECT_NAME} ${FILE_LIST})
endif()
\ No newline at end of file
......@@ -15,28 +15,31 @@
# limitations under the License.
#
###########################################################################
if(iMSTK_USE_OMNI)
project(Example-CameraController)
project(Example-CameraController)
#-----------------------------------------------------------------------------
# Create executable
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} CameraController.cpp)
#-----------------------------------------------------------------------------
# Create executable
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} CameraController.cpp)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
if(UNIX)
target_link_libraries(${PROJECT_NAME}
SimulationManager)
else()
target_link_libraries(${PROJECT_NAME}
SimulationManager)
endif()
#-----------------------------------------------------------------------------
# Associate external data
#-----------------------------------------------------------------------------
list(APPEND FILE_LIST
asianDragon/,REGEX:.*)
imstk_add_data(${PROJECT_NAME} ${FILE_LIST})
\ No newline at end of file
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
if(UNIX)
target_link_libraries(${PROJECT_NAME}
SimulationManager)
else()
target_link_libraries(${PROJECT_NAME}
SimulationManager)
endif()
#-----------------------------------------------------------------------------
# Associate external data
#-----------------------------------------------------------------------------
list(APPEND FILE_LIST
asianDragon/,REGEX:.*)
imstk_add_data(${PROJECT_NAME} ${FILE_LIST})
endif()
\ No newline at end of file
......@@ -15,28 +15,31 @@
# limitations under the License.
#
###########################################################################
if(iMSTK_USE_OMNI)
project(Example-LapToolController)
project(Example-LapToolController)
#-----------------------------------------------------------------------------
# Create executable
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} LaparoscopicToolController.cpp)
#-----------------------------------------------------------------------------
# Create executable
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} LaparoscopicToolController.cpp)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
if(UNIX)
target_link_libraries(${PROJECT_NAME}
SimulationManager)
else()
target_link_libraries(${PROJECT_NAME}
SimulationManager)
endif()
#-----------------------------------------------------------------------------
# Associate external data
#-----------------------------------------------------------------------------
list(APPEND FILE_LIST
laptool/,REGEX:.*)
imstk_add_data(${PROJECT_NAME} ${FILE_LIST})
\ No newline at end of file
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
if(UNIX)
target_link_libraries(${PROJECT_NAME}
SimulationManager)
else()
target_link_libraries(${PROJECT_NAME}
SimulationManager)
endif()
#-----------------------------------------------------------------------------
# Associate external data
#-----------------------------------------------------------------------------
list(APPEND FILE_LIST
laptool/,REGEX:.*)
imstk_add_data(${PROJECT_NAME} ${FILE_LIST})
endif()
\ No newline at end of file
......@@ -15,21 +15,24 @@
# limitations under the License.
#
###########################################################################
if(iMSTK_USE_OMNI)
project(Example-ObjectController)
project(Example-ObjectController)
#-----------------------------------------------------------------------------
# Create executable
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} ObjectController.cpp)
#-----------------------------------------------------------------------------
# Create executable
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} ObjectController.cpp)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
if(UNIX)
target_link_libraries(${PROJECT_NAME}
SimulationManager)
else()
target_link_libraries(${PROJECT_NAME}
SimulationManager)
endif()
#-----------------------------------------------------------------------------
# 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
......@@ -16,27 +16,31 @@
#
###########################################################################
project(Example-Picking)
if(iMSTK_USE_OMNI)
#-----------------------------------------------------------------------------
# Create executable
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} Picking.cpp)
project(Example-Picking)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
if(UNIX)
target_link_libraries(${PROJECT_NAME}
SimulationManager)
else()
target_link_libraries(${PROJECT_NAME}
SimulationManager)
endif()
#-----------------------------------------------------------------------------
# Associate external data
#-----------------------------------------------------------------------------
list(APPEND FILE_LIST
oneTet/,REGEX:.*)
imstk_add_data(${PROJECT_NAME} ${FILE_LIST})
\ No newline at end of file
#-----------------------------------------------------------------------------
# Create executable
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} Picking.cpp)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
if(UNIX)
target_link_libraries(${PROJECT_NAME}
SimulationManager)
else()
target_link_libraries(${PROJECT_NAME}
SimulationManager)
endif()
#-----------------------------------------------------------------------------
# Associate external data
#-----------------------------------------------------------------------------
list(APPEND FILE_LIST
oneTet/,REGEX:.*)
imstk_add_data(${PROJECT_NAME} ${FILE_LIST})
endif()
\ No newline at end of file
......@@ -15,21 +15,24 @@
# limitations under the License.
#
###########################################################################
if(iMSTK_USE_OMNI)
project(Example-VirtualCoupling)
project(Example-VirtualCoupling)
#-----------------------------------------------------------------------------
# Create executable
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} VirtualCoupling.cpp)
#-----------------------------------------------------------------------------
# Create executable
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME} VirtualCoupling.cpp)
#-----------------------------------------------------------------------------
# Link libraries to executable
#-----------------------------------------------------------------------------
if(UNIX)
target_link_libraries(${PROJECT_NAME}
SimulationManager)
else()
target_link_libraries(${PROJECT_NAME}
SimulationManager)
endif()
#-----------------------------------------------------------------------------
# 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment