1 Star 0 Fork 0

han0nly/phasar

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Config.cmake.in 888 Bytes
一键复制 编辑 原始数据 按行查看 历史
set(PHASAR_VERSION 1.0.0)
@PACKAGE_INIT@
set_and_check(PHASAR_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
foreach(component ${phasar_FIND_COMPONENTS})
include("${CMAKE_CURRENT_LIST_DIR}/phasar_${component}-config.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/phasar_${component}-targets.cmake")
endforeach()
function(phasar_config executable)
find_package(LLVM 10 REQUIRED CONFIG)
include_directories(${LLVM_INCLUDE_DIRS})
link_directories(${LLVM_LIB_PATH} ${LLVM_LIBRARY_DIRS})
find_library(LLVM_LIBRARY NAMES LLVM HINTS ${LLVM_LIBRARY_DIRS})
if(NOT ${LLVM_LIBRARY} STREQUAL "LLVM_LIBRARY-NOTFOUND")
llvm_config(${executable} USE_SHARED ${PHASAR_LLVM_DEPS})
else()
llvm_config(${executable} ${PHASAR_LLVM_DEPS})
endif()
list(REMOVE_DUPLICATES PHASAR_NEEDED_LIBS)
target_link_libraries(${executable}
PUBLIC
${PHASAR_NEEDED_LIBS}
)
endfunction()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/han0nly/phasar.git
git@gitee.com:han0nly/phasar.git
han0nly
phasar
phasar
master

搜索帮助