Get tests to pass with CMake build system

progress on issues #23 (new mechanism to add keymaps) and #27 (Cmake build)
This commit is contained in:
Dave 2021-03-05 01:17:33 -06:00
parent a95a8ddb8d
commit 3a854d97f2
5 changed files with 6 additions and 5 deletions

View File

@ -31,7 +31,6 @@
#include "asdf_config.h"
#include "asdf_physical.h"
#include "asdf_virtual.h"
#include "asdf_arch.h"

View File

@ -1,4 +1,5 @@
temporary_config_file(${ASDF_SRC_DIR}/Keymaps/asdf_all_keymap_defs_test.h ${CMAKE_CURRENT_BINARY_DIR}/asdf_keymap_defs.h)
temporary_config_file(${ASDF_SRC_DIR}/Arch/asdf_arch_test.h ${CMAKE_CURRENT_BINARY_DIR}/asdf_arch.h)
list(APPEND C_FLAGS
"-std=c99"
@ -48,13 +49,14 @@ target_include_directories(asdf_core
add_library(test_helpers
STATIC
${CMAKE_CURRENT_SOURCE_DIR}/test_asdf_lib.c
${CMAKE_CURRENT_SOURCE_DIR}/test_asdf_keymap_defs.c
)
target_include_directories(test_helpers
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}
${ASDF_SRC_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
)

View File

@ -4,7 +4,7 @@
#include "unity.h"
#include "asdf.h"
#include "asdf_arch.h"
#include "asdf_arch_test.h"
#include "asdf_ascii.h"
#include "asdf_modifiers.h"
#include "asdf_keymaps.h"

View File

@ -1,6 +1,6 @@
#include <stdint.h>
#include <stdarg.h>
#include "asdf_arch.h"
#include "asdf_arch_test.h"
#include "unity.h"
#include "asdf.h"
#include "asdf_ascii.h"

View File

@ -1,6 +1,6 @@
#include <stdint.h>
#include <stdarg.h>
#include "asdf_arch.h"
#include "asdf_arch_test.h"
#include "unity.h"
#include "asdf.h"
#include "asdf_ascii.h"