From 1729acd9b72369af45ee5ed45a8d29642f3df367 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 6 Jun 2017 09:11:22 +0200 Subject: wip o Dropping Samsung-specific code, will be replaces by a small script. o Starting on some unit test code. --- CMakeLists.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 52c9c42..7d88671 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,6 @@ add_executable(firmware src/radio-controller.cpp include/decoder.h include/misc.h include/radio-controller.h - include/samsung_decoder.h include) target_compile_definitions(firmware PUBLIC MCUCMAKE_USING_STM32CUBE=1) target_include_directories(firmware PUBLIC include) @@ -53,3 +52,14 @@ mcu_include_directories_from_sources( list(FILTER BSP_INCLUDES INCLUDE REGEX Inc) target_include_directories(firmware PUBLIC ${BSP_INCLUDES}) target_sources(firmware PUBLIC ${BSP_SOURCES} ${BSP_HEADERS}) + +ExternalProject_Add(build-tests + SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/test +# EXCLUDE_FROM_ALL TRUE + CMAKE_ARGS "-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}" + INSTALL_COMMAND "") + +add_custom_target(run-tests ALL + COMMAND ${CMAKE_BINARY_DIR}/tests-prefix/src/tests-build/tests + DEPENDS build-tests + ) -- cgit v1.2.3