Prusa-Firmware-MMU/tests/unit/modules/pulse_gen/CMakeLists.txt

17 lines
436 B
CMake

# define the test executable
add_executable(pulse_gen_tests
test_pulse_gen.cpp
../../../../src/modules/pulse_gen.cpp
../../../../src/modules/speed_table.cpp
../stubs/stub_shr16.cpp
../stubs/stub_gpio.cpp
)
# define required search paths
target_include_directories(
pulse_gen_tests PUBLIC ${CMAKE_SOURCE_DIR}/src/modules ${CMAKE_SOURCE_DIR}/src/hal
)
# tell build system about the test case
add_catch_test(pulse_gen_tests)