From 4ceb4103cff0b44149e4a99cbb228d8597b28629 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 17 Dec 2024 07:41:45 +0100 Subject: [PATCH] urbanski/CMakeLists.txt: Refactor --- data/drivers/urbanski/CMakeLists.txt | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/data/drivers/urbanski/CMakeLists.txt b/data/drivers/urbanski/CMakeLists.txt index 6494ed59..a7181f88 100644 --- a/data/drivers/urbanski/CMakeLists.txt +++ b/data/drivers/urbanski/CMakeLists.txt @@ -1,10 +1,16 @@ -INCLUDE(../../../cmake/macros.cmake) +include(${CMAKE_SOURCE_DIR}/cmake/macros.cmake) -SET(ROBOT_NAME "urbanski") -SET(ROBOT_SUBDIRS 0 1 - mp10-agl-kart - ) +set(dirs) -ROBOT_DATA(NAME ${ROBOT_NAME} - FILES urbanski.xml default.xml logo.rgb readme.txt - SUBDIRS ${ROBOT_SUBDIRS} PATTERNS *.xml logo.rgb *.png *.jpg) +set(files + readme.txt + default.xml + logo.rgb +) + +ROBOT_DATA( + NAME urbanski + FILES ${files} + SUBDIRS ${dirs} + PATTERNS *.xml +)