summaryrefslogtreecommitdiffstats
path: root/Tests/FindLAPACK/CMakeLists.txt
blob: eab5bb44d6ab2fd2cc26ee7ff97e545fc22fefbf (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_FindLAPACK)
  add_test(NAME FindLAPACK.Test_${vendor} COMMAND
    ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
    --build-and-test
    "${CMake_SOURCE_DIR}/Tests/FindLAPACK/Test"
    "${CMake_BINARY_DIR}/Tests/FindLAPACK/Test_${vendor}"
    ${build_generator_args}
    --build-project TestFindLAPACK
    --build-options ${build_options} -DBLA_VENDOR=${vendor}
    --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
    )
endforeach()

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