28 lines · plain
1set(FBSDKERNEL_LIBS)2if(FBSDVMCore_FOUND)3 list(APPEND FBSDKERNEL_LIBS fbsdvmcore)4endif()5if("${CMAKE_SYSTEM_NAME}" MATCHES "FreeBSD")6 list(APPEND FBSDKERNEL_LIBS kvm)7endif()8 9if (NOT FBSDKERNEL_LIBS)10 message(STATUS "Skipping FreeBSDKernel plugin due to missing libfbsdvmcore")11 return()12endif()13 14add_lldb_library(lldbPluginProcessFreeBSDKernel PLUGIN15 ProcessFreeBSDKernel.cpp16 RegisterContextFreeBSDKernel_arm64.cpp17 RegisterContextFreeBSDKernel_i386.cpp18 RegisterContextFreeBSDKernel_x86_64.cpp19 ThreadFreeBSDKernel.cpp20 21 LINK_COMPONENTS22 Support23 LINK_LIBS24 lldbCore25 lldbTarget26 ${FBSDKERNEL_LIBS}27 )28