Build the harness as a static library (#430)

This reduces by a factor of roughly two the number of files to build.

Fixes #193.

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
Kévin Petit
2019-08-07 17:18:10 +01:00
committed by GitHub
parent 67655e6fe5
commit fa4b278432
78 changed files with 68 additions and 625 deletions

View File

@@ -0,0 +1,14 @@
set(HARNESS_COMPAT_SOURCES
harness/errorHelpers.c
harness/imageHelpers.cpp
harness/kernelHelpers.c
harness/testHarness.c
)
set_source_files_properties(${HARNESS_COMPAT_SOURCES} PROPERTIES LANGUAGE CXX)
add_library(harness-compat STATIC ${HARNESS_COMPAT_SOURCES})
target_link_libraries(harness-compat harness-common)