if(WIN32) add_subdirectory(win-wasapi) add_subdirectory(win-dshow) add_subdirectory(win-capture) add_subdirectory(decklink/win) elseif(APPLE) add_subdirectory(mac-avcapture) add_subdirectory(mac-capture) add_subdirectory(mac-syphon) add_subdirectory(decklink/mac) elseif("${CMAKE_SYSTEM_NAME}" MATCHES "Linux") add_subdirectory(linux-capture) add_subdirectory(linux-pulseaudio) add_subdirectory(linux-v4l2) add_subdirectory(linux-jack) add_subdirectory(decklink/linux) elseif("${CMAKE_SYSTEM_NAME}" MATCHES "FreeBSD") add_subdirectory(linux-capture) add_subdirectory(linux-pulseaudio) add_subdirectory(linux-v4l2) add_subdirectory(linux-jack) endif() add_subdirectory(image-source) add_subdirectory(obs-x264) add_subdirectory(obs-libfdk) add_subdirectory(obs-ffmpeg) add_subdirectory(obs-outputs) add_subdirectory(obs-filters) add_subdirectory(rtmp-services) add_subdirectory(text-freetype2)