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