set(PlatformTestSources
        ConcurrencyTest.hpp
        HttpTest.hpp
        SchedulerTest.hpp
)

if(TARGET_PLATFORM STREQUAL "PS4" OR TARGET_PLATFORM STREQUAL "XboxOne")
  list(APPEND PlatformTestSources
     audiodecoder_test.hpp
     videodecoder_test.hpp
  )
endif()

add_library(testplatform
    ${PlatformTestSources}
)

target_link_libraries(testplatform gmock gtest mock mediaplayer testenv)
if(TARGET_PLATFORM STREQUAL "iPhone" OR TARGET_PLATFORM STREQUAL "AppleTV")
  target_link_libraries(testplatform playercore)
endif()
