4df3d1af47
Change-Id: If4c2cad9ef3359ca8d98814864fbe0b9b8e4a4ab
20 lines
372 B
CMake
20 lines
372 B
CMake
# AMD Tests
|
|
set(TEST_SRC
|
|
saxpy.cc
|
|
)
|
|
|
|
# AMD only tests
|
|
set(AMD_TEST_SRC
|
|
customOptions.cc
|
|
)
|
|
|
|
if(HIP_PLATFORM MATCHES "amd")
|
|
set(TEST_SRC ${TEST_SRC} ${AMD_TEST_SRC})
|
|
endif()
|
|
|
|
# Create shared lib of all tests
|
|
add_library(RTC SHARED EXCLUDE_FROM_ALL ${TEST_SRC})
|
|
|
|
# Add dependency on build_tests to build it on this custom target
|
|
add_dependencies(build_tests RTC)
|