mirror of
https://github.com/nasa/fprime.git
synced 2025-12-11 04:35:25 -06:00
* Add FppTestProject level * Fix FPP Test Project UT errors * Add back in FppTest deployment & make empty main in source.cpp * Remove Wold-style-cast to see if that fixes CI issues * Update add_compile_options --------- Co-authored-by: M Starch <LeStarch@googlemail.com>
31 lines
951 B
CMake
31 lines
951 B
CMake
# ======================================================================
|
|
# CMakeLists.txt
|
|
# ======================================================================
|
|
|
|
# We need to declare the FPP source files this way to invoke the autocoder.
|
|
# However, only the UT build is allowed here.
|
|
set(SOURCE_FILES
|
|
"${CMAKE_CURRENT_LIST_DIR}/alias.fpp"
|
|
"${CMAKE_CURRENT_LIST_DIR}/array.fpp"
|
|
"${CMAKE_CURRENT_LIST_DIR}/enum.fpp"
|
|
"${CMAKE_CURRENT_LIST_DIR}/string.fpp"
|
|
"${CMAKE_CURRENT_LIST_DIR}/struct.fpp"
|
|
"${CMAKE_CURRENT_LIST_DIR}/format.fpp"
|
|
)
|
|
register_fprime_module()
|
|
|
|
# Declare dependencies on test modules
|
|
set(UT_MOD_DEPS
|
|
Fw/Test
|
|
STest
|
|
)
|
|
|
|
# List all .cpp files as UT_SOURCE_FILES. Only the UT build is allowed.
|
|
set(UT_SOURCE_FILES
|
|
"${CMAKE_CURRENT_LIST_DIR}/ArrayToStringTest.cpp"
|
|
"${CMAKE_CURRENT_LIST_DIR}/FormatTest.cpp"
|
|
"${CMAKE_CURRENT_LIST_DIR}/../utils/Utils.cpp"
|
|
"${CMAKE_CURRENT_LIST_DIR}/main.cpp"
|
|
)
|
|
register_fprime_ut()
|