From fd656358a36f6d6c18aff72503c0142fe10bf847 Mon Sep 17 00:00:00 2001 From: Schaich Date: Mon, 29 Mar 2021 23:30:30 +0900 Subject: [PATCH] Add zint-test's testcommon include directory to consumers of the library --- backend/tests/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/tests/CMakeLists.txt b/backend/tests/CMakeLists.txt index 4c8b8ca7..2c975a8e 100644 --- a/backend/tests/CMakeLists.txt +++ b/backend/tests/CMakeLists.txt @@ -25,10 +25,12 @@ set(testcommon_SRCS testcommon.c testcommon.h) add_library(testcommon ${testcommon_SRCS}) target_link_libraries(testcommon zint) +target_include_directories(testcommon PUBLIC ${zint_backend_tests_SOURCE_DIR}) if(ZINT_STATIC) add_library(testcommon-static ${testcommon_SRCS}) target_link_libraries(testcommon-static zint-static) + target_include_directories(testcommon-static PUBLIC ${zint_backend_tests_SOURCE_DIR}) endif() macro(zint_add_test test_name test_command)