mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-19 12:30:16 +00:00
16 lines
858 B
CMake
16 lines
858 B
CMake
list(APPEND CMAKE_PREFIX_PATH /opt/rocm)
|
|
add_subdirectory(rtc)
|
|
file(GLOB TEST_SRCS CONFIGURE_DEPENDS *.cpp)
|
|
foreach(TEST_SRC ${TEST_SRCS})
|
|
set_source_files_properties(${TEST_SRC} PROPERTIES LANGUAGE HIP)
|
|
get_filename_component(BASE_NAME ${TEST_SRC} NAME_WE)
|
|
add_executable(test_host_${BASE_NAME} ${TEST_SRC})
|
|
add_dependencies(codegen test_host_${BASE_NAME})
|
|
add_test(NAME codegen_test_${BASE_NAME} COMMAND test_host_${BASE_NAME})
|
|
target_link_libraries(test_host_${BASE_NAME} ck_rtc ck_host)
|
|
# target_link_libraries(test_host_${BASE_NAME} ${CK_ROOT}/build/lib/libutility.a)
|
|
target_include_directories(test_host_${BASE_NAME} PUBLIC ${CK_ROOT}/codegen/test/include)
|
|
target_include_directories(test_host_${BASE_NAME} PUBLIC ${CK_ROOT}/include)
|
|
target_include_directories(test_host_${BASE_NAME} PUBLIC ${CK_ROOT}/library/include)
|
|
endforeach()
|