Files
rocm-systems/projects/hip/tests/catch/unit/deviceLib/CMakeLists.txt
T
Jatin Chaudhary 62548cce56 SWDEV-277697 - [CatchTest] Fix Documentation, Add test to AMD specific, Add HIP Macros, New Binary for multiproc tests
Change-Id: I3783caf85c694b724ed55b778220b8ef9a39f84b


[ROCm/hip commit: c088ddbe7c]
2021-05-25 07:12:54 -04:00

21 wiersze
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)