tests: remove relative cmake paths in pulse_gen/speed_table
parent
787c73ecff
commit
a5a91cbaa8
|
|
@ -1,16 +1,14 @@
|
||||||
# define the test executable
|
# define the test executable
|
||||||
add_executable(pulse_gen_tests
|
add_executable(
|
||||||
test_pulse_gen.cpp
|
pulse_gen_tests
|
||||||
../../../../src/modules/pulse_gen.cpp
|
${CMAKE_SOURCE_DIR}/src/modules/pulse_gen.cpp ${CMAKE_SOURCE_DIR}/src/modules/speed_table.cpp
|
||||||
../../../../src/modules/speed_table.cpp
|
${MODULES_STUBS_DIR}/stub_gpio.cpp ${MODULES_STUBS_DIR}/stub_shr16.cpp test_pulse_gen.cpp
|
||||||
../stubs/stub_shr16.cpp
|
)
|
||||||
../stubs/stub_gpio.cpp
|
|
||||||
)
|
|
||||||
|
|
||||||
# define required search paths
|
# define required search paths
|
||||||
target_include_directories(
|
target_include_directories(
|
||||||
pulse_gen_tests PUBLIC ${CMAKE_SOURCE_DIR}/src/modules ${CMAKE_SOURCE_DIR}/src/hal
|
pulse_gen_tests PUBLIC ${CMAKE_SOURCE_DIR}/src/modules ${CMAKE_SOURCE_DIR}/src/hal
|
||||||
)
|
)
|
||||||
|
|
||||||
# tell build system about the test case
|
# tell build system about the test case
|
||||||
add_catch_test(pulse_gen_tests)
|
add_catch_test(pulse_gen_tests)
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,10 @@
|
||||||
# define the test executable
|
# define the test executable
|
||||||
add_executable(speed_table_tests
|
add_executable(
|
||||||
test_speed_table.cpp
|
speed_table_tests ${CMAKE_SOURCE_DIR}/src/modules/speed_table.cpp test_speed_table.cpp
|
||||||
../../../../src/modules/speed_table.cpp)
|
)
|
||||||
|
|
||||||
# define required search paths
|
# define required search paths
|
||||||
target_include_directories(
|
target_include_directories(speed_table_tests PUBLIC ${CMAKE_SOURCE_DIR}/src/modules)
|
||||||
speed_table_tests PUBLIC ${CMAKE_SOURCE_DIR}/src/modules
|
|
||||||
)
|
|
||||||
|
|
||||||
# tell build system about the test case
|
# tell build system about the test case
|
||||||
add_catch_test(speed_table_tests)
|
add_catch_test(speed_table_tests)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue