add_subdirectory(cuda)
add_subdirectory(rocm)
add_subdirectory(ascend)
add_subdirectory(sunrise)

file(GLOB PLATFORM_SOURCES "*.cpp")
add_library(tent_platform_all STATIC ${PLATFORM_SOURCES})
target_link_libraries(tent_platform_all PUBLIC tent_common)
if(TARGET platform_cuda)
  target_link_libraries(tent_platform_all PUBLIC platform_cuda)
endif()
if(TARGET platform_rocm)
  target_link_libraries(tent_platform_all PUBLIC platform_rocm)
endif()
if(TARGET platform_ascend)
  target_link_libraries(tent_platform_all PUBLIC platform_ascend)
endif()
if(TARGET platform_sunrise)
  target_link_libraries(tent_platform_all PUBLIC platform_sunrise)
endif()
