Debian Codegraph @

cross-project-tests/debuginfo-tests/llvm-prettyprinters/lldb/CMakeLists.txt

raw
1 add_library(lldb-formatter-test-settings INTERFACE)
2
3 target_link_libraries(lldb-formatter-test-settings INTERFACE LLVMSupport)
4 # Unset _FORTIFY_SOURCE since it's incompatible with -O0.
5 target_compile_options(lldb-formatter-test-settings INTERFACE -g -O0 -U_FORTIFY_SOURCE)
6
7 macro(add_lldb_test target source)
8 add_executable(${target} ${source})
9 target_link_libraries(${target} PRIVATE lldb-formatter-test-settings)
10 endmacro()
11
12 add_lldb_test(check-lldb-llvm-support-arrayref arrayref.cpp)
13 add_lldb_test(check-lldb-llvm-support-pointer-int-pair pointer-int-pair.cpp)
14 add_lldb_test(check-lldb-llvm-support-pointer-union pointer-union.cpp)
15
16 set(LLDB_FORMATTER_TESTS
17 check-lldb-llvm-support-arrayref
18 check-lldb-llvm-support-pointer-int-pair
19 check-lldb-llvm-support-pointer-union
20 PARENT_SCOPE)