20 lines
817 B
CMake
20 lines
817 B
CMake
add_executable(xexample1_CBLAS cblas_example1.c)
|
|
add_executable(xexample2_CBLAS cblas_example2.c)
|
|
|
|
target_link_libraries(xexample1_CBLAS ${CBLASLIB})
|
|
target_link_libraries(xexample2_CBLAS ${CBLASLIB} ${BLAS_LIBRARIES})
|
|
|
|
add_test(example1_CBLAS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/xexample1_CBLAS)
|
|
add_test(example2_CBLAS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/xexample2_CBLAS)
|
|
|
|
if(BUILD_INDEX64_EXT_API)
|
|
add_executable(xexample1_64_CBLAS cblas_example1_64.c)
|
|
add_executable(xexample2_64_CBLAS cblas_example2_64.c)
|
|
|
|
target_link_libraries(xexample1_64_CBLAS ${CBLASLIB})
|
|
target_link_libraries(xexample2_64_CBLAS ${CBLASLIB} ${BLAS_LIBRARIES})
|
|
|
|
add_test(example1_64_CBLAS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/xexample1_64_CBLAS)
|
|
add_test(example2_64_CBLAS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/xexample2_64_CBLAS)
|
|
endif()
|