summaryrefslogtreecommitdiff
path: root/deps/fff/examples/embedded_ui/CMakeLists.txt
blob: d2f3015675dc92f1f006c751667c1141762a259a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright 2022 Google LLC
# SPDX-License-Identifier: Apache-2.0

# Create the ui_test_ansic test binary
add_executable(ui_test_ansic src/UI_test_ansic.c src/UI.c)
target_include_directories(ui_test_ansic PRIVATE include)
target_link_libraries(ui_test_ansic PRIVATE fff)

# Create the ui_test_cpp test binary
add_executable(ui_test_cpp src/UI_test_cpp.cpp src/UI.c)
target_include_directories(ui_test_cpp PRIVATE include)
target_link_libraries(ui_test_cpp PRIVATE GTest::gtest_main fff)

# Add tests to ctest
add_test(
    NAME ui_test_ansic
    COMMAND $<TARGET_FILE:ui_test_ansic>
)

add_test(
    NAME ui_test_cpp
    COMMAND $<TARGET_FILE:ui_test_cpp>
)