svf-tools
Version:
* <b>[TypeClone](https://github.com/SVF-tools/SVF/wiki/TypeClone) published in our [ECOOP paper](https://yuleisui.github.io/publications/ecoop20.pdf) is now available in SVF </b> * <b>SVF now uses a single script for its build. Just type [`source ./build.
43 lines (38 loc) • 1.06 kB
Plain Text
add_subdirectory(SABER)
add_subdirectory(WPA)
add_subdirectory(Example)
add_subdirectory(DDA)
add_subdirectory(MTA)
add_subdirectory(CFL)
add_subdirectory(LLVM2SVF)
add_subdirectory(AE)
set(ALL_TOOLS
ae
cfl
dvf
llvm2svf
mta
saber
svf-ex
wpa
)
foreach(_tool IN LISTS ALL_TOOLS)
# Link the SvfLLVM library against SVF's core & LLVM libraries
target_link_libraries(${_tool} PRIVATE SvfCore SvfLLVM)
# Ensure that the build artifacts are placed into lib/bin/include relative to the top of the build directory
set_target_properties(
${_tool}
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${SVF_BINARY_DIR}/bin
LIBRARY_OUTPUT_DIRECTORY ${SVF_BINARY_DIR}/lib
ARCHIVE_OUTPUT_DIRECTORY ${SVF_BINARY_DIR}/lib
)
install(
TARGETS ${_tool}
EXPORT SVFTargets
RUNTIME DESTINATION ${SVF_INSTALL_BINDIR}
LIBRARY DESTINATION ${SVF_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${SVF_INSTALL_LIBDIR}
FILE_SET HEADERS
DESTINATION ${SVF_INSTALL_INCLUDEDIR}
)
endforeach()