From 1d0f4586e7919245c4422cd89af43908cefcf19f Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Thu, 2 Nov 2023 07:39:27 +0100 Subject: [PATCH] cmake: test: Allow building tests as standalone project --- test/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 8dcffe5..5a970d5 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -3,7 +3,8 @@ find_package(CMocka) if (CMOCKA_FOUND) set(CMAKE_INSTALL_RPATH "\$ORIGIN/../src") add_executable(engine-tests tests.c timeline.c character.c) + include_directories("../src") target_link_libraries(engine-tests cmocka libsuperderpy) else(CMOCKA_FOUND) - message("CMocka not found; tests disabled.") + message(WARNING "CMocka not found; tests disabled.") endif(CMOCKA_FOUND)