From f1198b11bd2f950362bdbf3bde386242460eccb8 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Mon, 17 Sep 2018 13:25:39 -0500 Subject: [PATCH] adding rocprof link Change-Id: Idb37a39a19d0e75b7867fb390504596d67df6436 --- CMakeLists.txt | 8 ++++++++ bin/rpl_run.sh | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c8d473d796..463dba6143 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,6 +73,10 @@ endif () ## Build tests add_subdirectory ( ${TEST_DIR} ${PROJECT_BINARY_DIR}/test ) +## Create symlinks for packaging and install +add_custom_target ( rocprof-link ALL + WORKING_DIRECTORY ${PROJECT_BINARY_DIR} + COMMAND ${CMAKE_COMMAND} -E create_symlink rpl_run.sh rocprof-link ) ## Install information #if ( CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT ) #message ( "CMAKE default prefix: ${CMAKE_INSTALL_PREFIX}" ) @@ -88,6 +92,10 @@ install ( FILES ${CMAKE_CURRENT_SOURCE_DIR}/bin/tblextr.py DESTINATION bin PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE ) +install ( FILES ${PROJECT_BINARY_DIR}/rocprof-link + DESTINATION bin + PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE + RENAME rocprof ) # gfx_metrics.xml metrics.xml install ( FILES ${CMAKE_CURRENT_SOURCE_DIR}/test/tool/metrics.xml diff --git a/bin/rpl_run.sh b/bin/rpl_run.sh index cfa388329d..123fcaf411 100755 --- a/bin/rpl_run.sh +++ b/bin/rpl_run.sh @@ -82,7 +82,7 @@ usage() { echo "Metrics definition: $PKG_DIR/lib/metrics.xml" echo "" echo "Usage:" - echo " rpl_run.sh [-h] [--list-basic] [--list-derived] [-i ] [-o ] " + echo " $bin_name [-h] [--list-basic] [--list-derived] [-i ] [-o ] " echo "" echo "Options:" echo " -h - this help"