2018-09-16 03:04:27 +08:00
|
|
|
add_library(LLVMCFIVerify
|
|
|
|
STATIC
|
2017-10-12 04:35:01 +08:00
|
|
|
FileAnalysis.cpp
|
2017-10-24 04:25:19 +08:00
|
|
|
FileAnalysis.h
|
|
|
|
GraphBuilder.cpp
|
2018-05-09 09:07:02 +08:00
|
|
|
GraphBuilder.h
|
2018-09-16 03:04:27 +08:00
|
|
|
)
|
2017-10-12 04:35:01 +08:00
|
|
|
|
2018-09-16 03:04:27 +08:00
|
|
|
llvm_update_compile_flags(LLVMCFIVerify)
|
2020-06-16 18:16:52 +08:00
|
|
|
if (LLVM_LINK_LLVM_DYLIB)
|
|
|
|
set(libs LLVM)
|
|
|
|
else()
|
|
|
|
llvm_map_components_to_libnames(libs
|
|
|
|
DebugInfoDWARF
|
|
|
|
MC
|
|
|
|
MCParser
|
|
|
|
Object
|
|
|
|
Support
|
|
|
|
Symbolize
|
|
|
|
)
|
|
|
|
endif()
|
2018-09-16 03:04:27 +08:00
|
|
|
target_link_libraries(LLVMCFIVerify ${libs})
|
|
|
|
set_target_properties(LLVMCFIVerify PROPERTIES FOLDER "Libraries")
|