From e2e66cc7144267d77e790eb2f8c9d82955737de6 Mon Sep 17 00:00:00 2001 From: Masaya Kataoka Date: Tue, 8 Aug 2023 07:13:23 +0900 Subject: [PATCH] add develop option Signed-off-by: Masaya Kataoka --- robotx_behavior_tree/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/robotx_behavior_tree/CMakeLists.txt b/robotx_behavior_tree/CMakeLists.txt index 4ba7d21..a96c26b 100644 --- a/robotx_behavior_tree/CMakeLists.txt +++ b/robotx_behavior_tree/CMakeLists.txt @@ -45,7 +45,9 @@ install(TARGETS RUNTIME DESTINATION lib/${PROJECT_NAME} ) -if($ENV{DEVELOP}) +option(DEVELOP "If true, install 3d models for desktop development" OFF) + +if(DEVELOP) install(DIRECTORY models DESTINATION share/${PROJECT_NAME}) endif()