Make building individual tests depend on BUILD_SINGLE etc defines
This commit is contained in:
parent
74e358bcd5
commit
593ce9e237
|
@ -3,11 +3,18 @@ include_directories(${PROJECT_BINARY_DIR})
|
||||||
|
|
||||||
enable_language(Fortran)
|
enable_language(Fortran)
|
||||||
|
|
||||||
set(OpenBLAS_Tests
|
if (BUILD_SINGLE)
|
||||||
sblat1 sblat2 sblat3
|
list( APPEND OpenBLAS_Tests sblat1 sblat2 sblat3)
|
||||||
dblat1 dblat2 dblat3
|
endif()
|
||||||
cblat1 cblat2 cblat3
|
if (BUILD_DOUBLE)
|
||||||
zblat1 zblat2 zblat3)
|
list (APPEND OpenBLAS_Tests dblat1 dblat2 dblat3)
|
||||||
|
endif()
|
||||||
|
if (BUILD_COMPLEX)
|
||||||
|
list (APPEND OpenBLAS_Tests cblat1 cblat2 cblat3)
|
||||||
|
endif()
|
||||||
|
if (BUILD_COMPLEX16)
|
||||||
|
list (APPEND OpenBLAS_Tests zblat1 zblat2 zblat3)
|
||||||
|
endif()
|
||||||
|
|
||||||
foreach(test_bin ${OpenBLAS_Tests})
|
foreach(test_bin ${OpenBLAS_Tests})
|
||||||
add_executable(${test_bin} ${test_bin}.f)
|
add_executable(${test_bin} ${test_bin}.f)
|
||||||
|
|
Loading…
Reference in New Issue