Commit 487ac471 authored by Aaron Bray's avatar Aaron Bray
Browse files

Add a setup shell script for running examples on *nix systems

parent 269f4f40
#
# Script to source to setup the iMSTK environment
#
this_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export PATH=$this_dir/bin:$PATH
export @LIBRARY_PATH_VAR@=$this_dir/lib:$@LIBRARY_PATH_VAR@
......@@ -341,6 +341,18 @@ if(${PROJECT_NAME}_BUILD_EXAMPLES)
add_subdirectory(Examples)
endif()
#--------------------------------------------------------------------------
# Add setup script for *nix systems
#--------------------------------------------------------------------------
if(NOT WIN32)
# Create setup shell script to create an environment for running examples
configure_file(
${CMAKE_SOURCE_DIR}/CMake/setup_iMSTK.sh.in
${CMAKE_INSTALL_PREFIX}/setup_iMSTK.sh
@ONLY
)
endif()
#--------------------------------------------------------------------------
# Innerbuild dummy test
#--------------------------------------------------------------------------
......
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