fprime/Svc/OsTime/CMakeLists.txt
M Starch 378a7a3e6f
Initial refactor to allow implementations as object libraries (#3642)
* Initial refactor to allow implementations as object libraries

* Initial review fixes

* Fixing linux builds

* Formatting

* sp

* Removing commented-out code

* Fixing UT_AUTO_HELPER regression

* CI fixes

* Review fixes
2025-05-23 14:36:05 -07:00

34 lines
866 B
CMake
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

####
# FPrime CMakeLists.txt:
#
# SOURCE_FILES: combined list of source and autocoding files
# MOD_DEPS: (optional) module dependencies
# UT_SOURCE_FILES: list of source files for unit tests
#
# More information in the F´ CMake API documentation:
# https://fprime.jpl.nasa.gov/latest/docs/user-manual/cmake/cmake-api/
#
####
add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/test/RawTimeTester")
register_fprime_module(
AUTOCODER_INPUTS
"${CMAKE_CURRENT_LIST_DIR}/OsTime.fpp"
SOURCES
"${CMAKE_CURRENT_LIST_DIR}/OsTime.cpp"
DEPENDS
Svc_Ports_OsTimeEpoch
)
register_fprime_ut(
AUTOCODER_INPUTS
"${CMAKE_CURRENT_LIST_DIR}/OsTime.fpp"
SOURCES
"${CMAKE_CURRENT_LIST_DIR}/test/ut/OsTimeTester.cpp"
"${CMAKE_CURRENT_LIST_DIR}/test/ut/OsTimeTestMain.cpp"
CHOOSES_IMPLEMENTATIONS
Svc_OsTime_test_RawTimeTester
UT_AUTO_HELPERS
)