blob: 772e781b5cc5551092e7d6898619d2e4e6f5c1f7 [file] [log] [blame]
set(FREEBSD_SOURCES
RegisterContextFreeBSDTest.cpp)
set(NETBSD_SOURCES
RegisterContextNetBSDTest_i386.cpp
RegisterContextNetBSDTest_x86_64.cpp)
if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
list(APPEND PLATFORM_SOURCES ${FREEBSD_SOURCES})
elseif (CMAKE_SYSTEM_NAME MATCHES "NetBSD")
list(APPEND PLATFORM_SOURCES ${NETBSD_SOURCES})
endif()
set(LLVM_OPTIONAL_SOURCES
${FREEBSD_SOURCES}
${NETBSD_SOURCES})
add_lldb_unittest(ProcessUtilityTests
RegisterContextTest.cpp
LinuxProcMapsTest.cpp
${PLATFORM_SOURCES}
LINK_LIBS
lldbPluginProcessUtility)