Files
rocm-systems/tests/catch/unit/deviceLib/CMakeLists.txt
T
2021-05-25 07:12:54 -04:00

21 γραμμές
434 B
CMake

# Common Tests - Test independent of all platforms
set(TEST_SRC
floatMath.cc
)
# AMD only tests
set(AMD_TEST_SRC
vectorTypesDevice.cc
)
if(HIP_PLATFORM MATCHES "amd")
set(TEST_SRC ${TEST_SRC} ${AMD_TEST_SRC})
endif()
# Create shared lib of all tests
add_library(DeviceLibs SHARED EXCLUDE_FROM_ALL ${TEST_SRC})
# Add dependency on build_tests to build it on this custom target
add_dependencies(build_tests DeviceLibs)