diff options
author | Andreas Antener <antener_a@gmx.ch> | 2015-02-03 10:35:20 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-02-10 08:39:46 +0100 |
commit | 5cccc01cd472f5a906ce21bbafd9d35d90bf7227 (patch) | |
tree | 1cc981f132b8e5967263f5caf2538904b8416a21 /unittests/CMakeLists.txt | |
parent | 13039f9e69d4f5e138f3ff2485534477e21eab98 (diff) | |
download | px4-firmware-5cccc01cd472f5a906ce21bbafd9d35d90bf7227.tar.gz px4-firmware-5cccc01cd472f5a906ce21bbafd9d35d90bf7227.tar.bz2 px4-firmware-5cccc01cd472f5a906ce21bbafd9d35d90bf7227.zip |
added unit test directive to switch out parameter storage
Diffstat (limited to 'unittests/CMakeLists.txt')
-rw-r--r-- | unittests/CMakeLists.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt index c2ef39652..e1f4120fc 100644 --- a/unittests/CMakeLists.txt +++ b/unittests/CMakeLists.txt @@ -31,6 +31,7 @@ add_definitions(-Dnoreturn_function=) add_definitions(-Dmain_t=int) add_definitions(-DERROR=-1) add_definitions(-DOK=0) +add_definitions(-D_UNIT_TEST=) # check add_custom_target(unittests COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure) @@ -81,10 +82,8 @@ add_gtest(sf0x_test) # param_test add_executable(param_test param_test.cpp hrt.cpp - stubs.cpp - ${PX_SRC}/modules/systemlib/visibility.h + uorb_stub.cpp ${PX_SRC}/modules/systemlib/param/param.c ${PX_SRC}/modules/systemlib/bson/tinybson.c - ${PX_SRC}/drivers/drv_hrt.h ) add_gtest(param_test) |