Files
rocm-systems/catch/unit/printf/CMakeLists.txt
T
Rahul Garg 961245e9f4 Catch2 standalone exe (#129)
* SWDEV-359379 - catch2: Standalone single exe per file

-workaround for rsp file issue.
-Creates single exe per file
-tests detection is still during execution time and NOT compile time

Change-Id: Iddfb83d57b2d767212f3d9307a276b7d572da6cd

* SWDEV-359379 - Update CMakeList

* Update Catch.cmake

* Temporarily disable failing tests
2023-01-19 14:09:14 -08:00

26 wiersze
769 B
CMake

# AMD Tests
set(TEST_SRC
printfFlags.cc
printfSpecifiers.cc
)
if(HIP_PLATFORM MATCHES "amd")
hip_add_exe_to_target(NAME printfTests
TEST_SRC ${TEST_SRC}
TEST_TARGET_NAME build_tests
PROPERTY CXX_STANDARD 17)
elseif (HIP_PLATFORM MATCHES "nvidia")
hip_add_exe_to_target(NAME printfTests
TEST_SRC ${TEST_SRC}
TEST_TARGET_NAME build_tests
COMPILE_OPTIONS -std=c++17)
endif()
# Standalone exes
add_executable(printfFlags_exe EXCLUDE_FROM_ALL printfFlags_exe.cc)
add_executable(printfSpecifiers_exe EXCLUDE_FROM_ALL printfSpecifiers_exe.cc)
add_dependencies(build_tests printfFlags_exe)
add_dependencies(build_tests printfSpecifiers_exe)