Die Migration der Bereiche "Docker Registry" und "Artifiacts" ist fast abgeschlossen. Die letzten Daten werden im Laufe des heutigen Abend (05.08.2021) noch vollständig hochgeladen. Das Anlegen neuer Images und Artifacts funktioniert bereits wieder.

struct_msgsCmakeTemplate.ftl 915 Bytes
Newer Older
1
2
3
4
5
cmake_minimum_required(VERSION 3.5)
project (struct_msgs)

find_package(genmsg REQUIRED)

6
FILE(GLOB MSG_FILES_RAW RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ../*/*/struct_msgs/*.msg)
7
8
9
10

#generate struct_msgs iff .msg files where found
if(MSG_FILES_RAW)

11
12
13
14
15
16
17
18
19
    #filter: add each struct msg only once (distinct by filename without path)
    foreach(CUR_MSG_FILE ${MSG_FILES_RAW})
        get_filename_component(TMP_MSG_NAME ${CUR_MSG_FILE} NAME)
        IF(NOT MSG_DEFINED_${TMP_MSG_NAME})
            get_filename_component(DIR_${TMP_MSG_NAME} ${CUR_MSG_FILE} DIRECTORY)
            add_message_files(DIRECTORY ${DIR_${TMP_MSG_NAME}} FILES ${TMP_MSG_NAME})
            SET(MSG_DEFINED_${TMP_MSG_NAME} TRUE)
        ENDIF()
    endforeach(CUR_MSG_FILE)
20

21
22
23
24
    generate_messages()
    #export the include_dirs, so that other subprojects can use it
    set(struct_msgs_INCLUDE_DIRS ${struct_msgs_INCLUDE_DIRS} PARENT_SCOPE)
endif()