From 0c5fb4fd41b7ee16bb81ac87a38820abec2296a7 Mon Sep 17 00:00:00 2001 From: servostar Date: Tue, 4 Jun 2024 15:06:17 +0200 Subject: [PATCH] changed build config for llvm test --- tests/llvm/CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/llvm/CMakeLists.txt b/tests/llvm/CMakeLists.txt index ac84d6e..d2d5953 100644 --- a/tests/llvm/CMakeLists.txt +++ b/tests/llvm/CMakeLists.txt @@ -30,10 +30,16 @@ include_directories(${LLVM_INCLUDE_DIR}) # CTEST 1 # test llvm backend codegen for global variables -file(GLOB_RECURSE SOURCE_FILES ${PROJECT_SOURCE_DIR}/src/*.c) +file(GLOB_RECURSE SOURCE_FILES ${PROJECT_SOURCE_DIR}/src/llvm/*.c) list(REMOVE_ITEM SOURCE_FILES ${PROJECT_SOURCE_DIR}/src/main.c) add_executable(global_vars -global_vars.c ${SOURCE_FILES}) + ${PROJECT_SOURCE_DIR}/src/codegen/backend.c + ${PROJECT_SOURCE_DIR}/src/sys/log.c + ${PROJECT_SOURCE_DIR}/src/sys/col.c + ${PROJECT_SOURCE_DIR}/src/cfg/opt.c + ${PROJECT_SOURCE_DIR}/src/io/files.c + global_vars.c + ${SOURCE_FILES}) set_target_properties(global_vars PROPERTIES OUTPUT_NAME "global_vars"