tests: remove relative cmake paths in pulse_gen/speed_table

pull/47/head
Yuri D'Elia 2021-07-12 11:11:49 +02:00
parent 787c73ecff
commit a5a91cbaa8
2 changed files with 10 additions and 14 deletions

View File

@ -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

View File

@ -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)