Skip to content
Snippets Groups Projects
Commit a23ca045 authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

generate the setup.sh under prefix.

parent 4ee8f1a6
No related branches found
No related tags found
No related merge requests found
...@@ -52,3 +52,15 @@ install(EXPORT ${PROJECT_NAME}Targets ...@@ -52,3 +52,15 @@ install(EXPORT ${PROJECT_NAME}Targets
) )
gaudi_install(CMAKE cmake/${PROJECT_NAME}Config.cmake) gaudi_install(CMAKE cmake/${PROJECT_NAME}Config.cmake)
file(WRITE ${CMAKE_BINARY_DIR}/setup.sh.in
"#!/bin/bash\n"
"# Generated by cmake \n"
"# Following is the extra envvar:\n"
"@RUN_SCRIPT_EXTRA_COMMANDS@"
)
configure_file("${CMAKE_BINARY_DIR}/setup.sh.in" "${CMAKE_BINARY_DIR}/setup.sh"
@ONLY)
install(FILES "${CMAKE_BINARY_DIR}/setup.sh"
DESTINATION ${CMAKE_INSTALL_PREFIX})
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