Skip to content

Update cookiecutter templates to use new CMake API #3624

Closed
@thomas-bc

Description

@thomas-bc
F´ Version
Affected Component

Feature Description

The new CMake structure introduces a cleaner CMake API.
See v4.0.0a1 release notes.

fprime-util new and fprime-bootstrap should update to that new API

For example for components, can now be

register_fprime_module(
    SOURCES
        "${CMAKE_CURRENT_LIST_DIR}/source1.cpp"
        "${CMAKE_CURRENT_LIST_DIR}/source2.cpp"
    HEADERS
        "${CMAKE_CURRENT_LIST_DIR}/header1.hpp"
        "${CMAKE_CURRENT_LIST_DIR}/header2.hpp"
    AUTOCODER_INPUTS
        "${CMAKE_CURRENT_LIST_DIR}/source1.fpp"
        "${CMAKE_CURRENT_LIST_DIR}/source2.fpp"
    DEPENDS
        Fw_Types
)

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions