obs-studio/test/CMakeLists.txt
Timo Gurr a46cc43e6f test: Only build osx tests for OS_MACOS
Fixes CMake build error on Linux:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
COCOA (ADVANCED)
    linked by target "macOS_test" in directory /var/tmp/paludis/build/media-video-obs-studio-28.0.0-beta1/work/obs-studio-28.0.0-beta1/test/osx
2022-08-06 16:07:17 -07:00

16 lines
219 B
CMake

if(BUILD_TESTS)
add_subdirectory(test-input)
if(OS_WINDOWS)
add_subdirectory(win)
endif()
if(OS_MACOS)
add_subdirectory(osx)
endif()
endif()
if(ENABLE_UNIT_TESTS)
add_subdirectory(cmocka)
endif()