Skip to content
Snippets Groups Projects
Commit db50d150 authored by Francois Bleibel's avatar Francois Bleibel
Browse files

Added auto-generated script to start shell with default plugins loaded.

parent 03aed5e8
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,17 @@ SET(tools ...@@ -7,6 +7,17 @@ SET(tools
test_shell test_shell
) )
### Configure shell launch script
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/shell.sh.cmake
${${PROJECT_NAME}_BINARY_DIR}/tools/shell.sh)
INSTALL(
FILES
${${PROJECT_NAME}_BINARY_DIR}/tools/shell.sh
DESTINATION
${CMAKE_INSTALL_PREFIX}/bin/${PROJECT_NAME}
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
GROUP_EXECUTE GROUP_READ )
FOREACH(tool_name ${tools}) FOREACH(tool_name ${tools})
SET(EXECUTABLE_NAME ${tool_name}) SET(EXECUTABLE_NAME ${tool_name})
......
echo "-- Launching dynamic-graph C shell with default plugins"
echo "loadPlugin ${CMAKE_INSTALL_PREFIX}/lib/plugin/shell-functions.so" > ./default_script
echo "loadPlugin ${CMAKE_INSTALL_PREFIX}/lib/plugin/shell-procedure.so" >> ./default_script
${CMAKE_INSTALL_PREFIX}/bin/${PROJECT_NAME}/test_shell default_script
\ 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