1 if (CMAKE_SYSTEM_NAME MATCHES "Linux|Android")
2 add_subdirectory(Linux)
3 add_subdirectory(POSIX)
4 elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
5 add_subdirectory(FreeBSD)
6 add_subdirectory(POSIX)
7 elseif (CMAKE_SYSTEM_NAME MATCHES "NetBSD")
8 add_subdirectory(NetBSD)
9 add_subdirectory(POSIX)
10 elseif (CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
11 add_subdirectory(POSIX)
12 elseif (CMAKE_SYSTEM_NAME MATCHES "Windows")
13 add_subdirectory(Windows/Common)
14 elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
15 add_subdirectory(MacOSX-Kernel)
17 add_subdirectory(scripted)
18 add_subdirectory(gdb-remote)
19 add_subdirectory(Utility)
20 add_subdirectory(elf-core)
21 add_subdirectory(mach-core)
22 add_subdirectory(minidump)
23 add_subdirectory(FreeBSDKernel)