1set(FREEBSD_SOURCES 2 RegisterContextFreeBSDTest.cpp) 3set(NETBSD_SOURCES 4 RegisterContextNetBSDTest_i386.cpp 5 RegisterContextNetBSDTest_x86_64.cpp) 6 7if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD") 8 list(APPEND PLATFORM_SOURCES ${FREEBSD_SOURCES}) 9elseif (CMAKE_SYSTEM_NAME MATCHES "NetBSD") 10 list(APPEND PLATFORM_SOURCES ${NETBSD_SOURCES}) 11endif() 12 13set(LLVM_OPTIONAL_SOURCES 14 ${FREEBSD_SOURCES} 15 ${NETBSD_SOURCES}) 16 17add_lldb_unittest(ProcessUtilityTests 18 LinuxProcMapsTest.cpp 19 MemoryTagManagerAArch64MTETest.cpp 20 RegisterContextTest.cpp 21 CoreFileMemoryRangesTest.cpp 22 ${PLATFORM_SOURCES} 23 24 LINK_LIBS 25 lldbPluginProcessUtility 26 LLVMTestingSupport) 27