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 PLUGIN 15 ProcessFreeBSDKernel.cpp 16 RegisterContextFreeBSDKernel_arm64.cpp 17 RegisterContextFreeBSDKernel_i386.cpp 18 RegisterContextFreeBSDKernel_x86_64.cpp 19 ThreadFreeBSDKernel.cpp 20 21 LINK_LIBS 22 lldbCore 23 lldbTarget 24 ${FBSDKERNEL_LIBS} 25 LINK_COMPONENTS 26 Support 27 ) 28