diff options
author | Daniel Agar <daniel@agar.ca> | 2015-01-06 08:46:58 -0500 |
---|---|---|
committer | Daniel Agar <daniel@agar.ca> | 2015-01-06 08:46:58 -0500 |
commit | 3606f5370af4d439afc47d1585a76e0b66e34336 (patch) | |
tree | 1dfe74b9b0847ae6f445a0c30ba04a1637baba85 | |
parent | e23b73e41507f071231253bef518cdb7346fcbc0 (diff) | |
download | px4-firmware-3606f5370af4d439afc47d1585a76e0b66e34336.tar.gz px4-firmware-3606f5370af4d439afc47d1585a76e0b66e34336.tar.bz2 px4-firmware-3606f5370af4d439afc47d1585a76e0b66e34336.zip |
cmake generate mixer_multirotor.generated.h for unittests
-rw-r--r-- | unittests/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt index 05d5fb214..39fc51437 100644 --- a/unittests/CMakeLists.txt +++ b/unittests/CMakeLists.txt @@ -12,6 +12,7 @@ elseif(COMPILER_SUPPORTS_CXX0X) else() message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.") endif() +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99") set(GTEST_DIR gtest) add_subdirectory(${GTEST_DIR}) @@ -40,11 +41,14 @@ add_executable(autodeclination_test autodeclination_test.cpp ${CMAKE_SOURCE_DIR} add_gtest(autodeclination_test) # mixer_test +add_custom_command(OUTPUT ${CMAKE_SOURCE_DIR}/../src/modules/systemlib/mixer/mixer_multirotor.generated.h + COMMAND ${CMAKE_SOURCE_DIR}/../src/modules/systemlib/mixer/multi_tables.py > ${CMAKE_SOURCE_DIR}/../src/modules/systemlib/mixer/mixer_multirotor.generated.h) add_executable(mixer_test mixer_test.cpp hrt.cpp ${CMAKE_SOURCE_DIR}/../src/modules/systemlib/mixer/mixer.cpp ${CMAKE_SOURCE_DIR}/../src/modules/systemlib/mixer/mixer_group.cpp ${CMAKE_SOURCE_DIR}/../src/modules/systemlib/mixer/mixer_load.c ${CMAKE_SOURCE_DIR}/../src/modules/systemlib/mixer/mixer_multirotor.cpp + ${CMAKE_SOURCE_DIR}/../src/modules/systemlib/mixer/mixer_multirotor.generated.h ${CMAKE_SOURCE_DIR}/../src/modules/systemlib/mixer/mixer_simple.cpp ${CMAKE_SOURCE_DIR}/../src/modules/systemlib/pwm_limit/pwm_limit.c ${CMAKE_SOURCE_DIR}/../src/systemcmds/tests/test_mixer.cpp) |