From 4ff09abefc74bbb590815edcfdd53a423f8f0b51 Mon Sep 17 00:00:00 2001 From: Felix Exner Date: Thu, 6 May 2021 17:19:50 +0200 Subject: [PATCH] Install the resources folder instead of the script file directly The main problem before was that the resource file got installed into another relative package location (/) than in the source package (/resources). This way, other packages searching that file would not work with both, source builds and installed versions. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d49907d7..8c37d9eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -108,4 +108,4 @@ if(catkin_FOUND OR ament_cmake_FOUND) install(FILES package.xml DESTINATION share/${PROJECT_NAME}) endif() -install(FILES resources/external_control.urscript DESTINATION share/${PROJECT_NAME}) +install(DIRECTORY resources DESTINATION share/${PROJECT_NAME})