c088ddbe7c
Change-Id: I3783caf85c694b724ed55b778220b8ef9a39f84b
21 γραμμές
434 B
CMake
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)
|