summaryrefslogtreecommitdiffstats
path: root/Tests/FindBLAS/CMakeLists.txt
blob: 63ef1dde3b71545f286729029f3317ab0e2ad098 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
foreach(vendor IN LISTS CMake_TEST_FindBLAS)
  add_test(NAME FindBLAS.Test_${vendor} COMMAND
    ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
    --build-and-test
    "${CMake_SOURCE_DIR}/Tests/FindBLAS/Test"
    "${CMake_BINARY_DIR}/Tests/FindBLAS/Test_${vendor}"
    ${build_generator_args}
    --build-project TestFindBLAS
    --build-options ${build_options} -DBLA_VENDOR=${vendor}
    --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
    )
endforeach()

foreach(vendor IN LISTS CMake_TEST_FindBLAS_STATIC)
  add_test(NAME FindBLAS.Test_${vendor}_Static COMMAND
    ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
    --build-and-test
    "${CMake_SOURCE_DIR}/Tests/FindBLAS/Test"
    "${CMake_BINARY_DIR}/Tests/FindBLAS/Test_${vendor}_Static"
    ${build_generator_args}
    --build-project TestFindBLAS
    --build-options ${build_options} -DBLA_VENDOR=${vendor} -DBLA_STATIC=ON
    --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
    )
endforeach()