fprime/Svc/DpWriter/CMakeLists.txt
Rob Bocchino b89b5d91c4
Add DpWriter (#2593)
* Pull in framework changes from data-products branch

* Pull in changes to DpManager from data-products branch

* Pull in DpWriter from data-products branch

* Fix spelling

* Revise FileNameString

* Fix warnings in CI

* Fix static analysis warnings

* Fix static analysis warnings

* Revise formatting and comments

* Revise banner comments

* Revise FileNameString per PR comment

* Revise path names in config headers

If a header H.hpp exists in the F Prime source base, then

is dangerous. Because [project root] and [fprime root] are both
in the list of include paths, it's not clear whether this means "include
[project root]/config/H.hpp" or "include [fprime root]/config/H.hpp."

On the other hand,

or

has no such ambiguity, because only one of [project root]/config
and [fprime root]/config is in the list of include paths.

* Revise path names in config headers

If a header H.hpp exists in the F Prime source base, then

`#include "config/H.hpp"`

is dangerous. Because [project root] and [fprime root] are both
in the list of include paths, it's not clear whether this means "include
[project root]/config/H.hpp" or "include [fprime root]/config/H.hpp."

On the other hand,

include <config/H.hpp>

or

`#include "config/H.hpp"`

has no such ambiguity, because only one of [project root]/config
and [fprime root]/config is in the list of include paths.
2024-03-28 16:09:38 -07:00

33 lines
950 B
CMake

set(SOURCE_FILES
"${CMAKE_CURRENT_LIST_DIR}/DpWriter.cpp"
"${CMAKE_CURRENT_LIST_DIR}/DpWriter.fpp"
)
set(MOD_DEPS
Fw/Dp
)
register_fprime_module()
set(UT_SOURCE_FILES
"${CMAKE_CURRENT_LIST_DIR}/DpWriter.fpp"
"${CMAKE_CURRENT_LIST_DIR}/test/ut/AbstractState.cpp"
"${CMAKE_CURRENT_LIST_DIR}/test/ut/DpWriterTestMain.cpp"
"${CMAKE_CURRENT_LIST_DIR}/test/ut/DpWriterTester.cpp"
"${CMAKE_CURRENT_LIST_DIR}/test/ut/Rules/BufferSendIn.cpp"
"${CMAKE_CURRENT_LIST_DIR}/test/ut/Rules/CLEAR_EVENT_THROTTLE.cpp"
"${CMAKE_CURRENT_LIST_DIR}/test/ut/Rules/FileOpenStatus.cpp"
"${CMAKE_CURRENT_LIST_DIR}/test/ut/Rules/FileWriteStatus.cpp"
"${CMAKE_CURRENT_LIST_DIR}/test/ut/Rules/SchedIn.cpp"
"${CMAKE_CURRENT_LIST_DIR}/test/ut/Rules/Testers.cpp"
"${CMAKE_CURRENT_LIST_DIR}/test/ut/Scenarios/Random.cpp"
)
set(UT_MOD_DEPS
STest
)
set(UT_AUTO_HELPERS ON)
choose_fprime_implementation(Os/File Os_File_Test_Stub)
register_fprime_ut()