diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2016-02-23 08:18:40 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2016-02-23 08:18:40 +0100 |
commit | 3f3b678b15eef0d102a021e07c8476b45e52940a (patch) | |
tree | 3447dda18e8ce6d62e685c632288bbe39bfdbd26 | |
parent | dbef1e0271da298a0cbdc951dda84b7f150bbad0 (diff) | |
download | pcitool-3f3b678b15eef0d102a021e07c8476b45e52940a.tar.gz pcitool-3f3b678b15eef0d102a021e07c8476b45e52940a.tar.bz2 pcitool-3f3b678b15eef0d102a021e07c8476b45e52940a.tar.xz pcitool-3f3b678b15eef0d102a021e07c8476b45e52940a.zip |
Add run script to run python scripts and binary executables in the local environment
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rwxr-xr-x | run | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b77529e..ed19146 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,6 +118,10 @@ if (NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR) DESTINATION ${CMAKE_BINARY_DIR} FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE ) + file(COPY ${CMAKE_SOURCE_DIR}/run + DESTINATION ${CMAKE_BINARY_DIR} + FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE + ) endif(NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR) install(FILES @@ -0,0 +1,5 @@ +#! /bin/bash + +APP_PATH=`dirname $0` + +PYTHONPATH="$APP_PATH/pywrap:$PYTHONPATH" PCILIB_MODEL_DIR="$APP_PATH/xml" LD_LIBRARY_PATH="$APP_PATH/pcilib" $* |