add_library(testplayer
        ${COMMON_TEST_MAIN_SRCS}
        EventTest.hpp
        MediaPlayerTest.hpp
        NativePlatformTest.hpp
        StreamTest.hpp
        MediaTimeTest.hpp
        SettingsTest.hpp
        )
target_link_libraries(testplayer gmock gtest mediaplayer mock testenv util)

if(TARGET_PLATFORM STREQUAL "iPhone" OR TARGET_PLATFORM STREQUAL "AppleTV")
  target_link_libraries(testplayer playercore)
endif()
