changed build config for llvm test

This commit is contained in:
Sven Vogel 2024-06-04 15:06:17 +02:00
parent 1c476cd561
commit 0c5fb4fd41
1 changed files with 8 additions and 2 deletions

View File

@ -30,10 +30,16 @@ include_directories(${LLVM_INCLUDE_DIR})
# CTEST 1 # CTEST 1
# test llvm backend codegen for global variables # 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) list(REMOVE_ITEM SOURCE_FILES ${PROJECT_SOURCE_DIR}/src/main.c)
add_executable(global_vars 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 set_target_properties(global_vars
PROPERTIES PROPERTIES
OUTPUT_NAME "global_vars" OUTPUT_NAME "global_vars"