summaryrefslogtreecommitdiffstats
path: root/src/openblas-test.cmake
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2018-03-20 12:26:24 (GMT)
committerTony Theodore <tonyt@logyst.com>2018-03-20 12:26:24 (GMT)
commited9dc43988916986214cda2643c8f7c21fda2ef5 (patch)
tree67295a6d213f45a0b4b96b933be031d1e3859618 /src/openblas-test.cmake
parent31d99c63bd02b15b6e6dfd8074740474de78563f (diff)
downloadmxe-ed9dc43988916986214cda2643c8f7c21fda2ef5.zip
mxe-ed9dc43988916986214cda2643c8f7c21fda2ef5.tar.gz
mxe-ed9dc43988916986214cda2643c8f7c21fda2ef5.tar.bz2
openblas: add cmake test program
closes #2081
Diffstat (limited to 'src/openblas-test.cmake')
-rw-r--r--src/openblas-test.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/openblas-test.cmake b/src/openblas-test.cmake
new file mode 100644
index 0000000..27bce29
--- /dev/null
+++ b/src/openblas-test.cmake
@@ -0,0 +1,13 @@
+# This file is part of MXE. See LICENSE.md for licensing information.
+
+# partial module - included by src/cmake/CMakeLists.txt
+
+set(TGT test-${PKG}-cmake)
+
+enable_language(C)
+add_executable(${TGT} ${CMAKE_CURRENT_LIST_DIR}/${PKG}-test.c)
+
+find_package(BLAS REQUIRED)
+target_link_libraries(${TGT} ${BLAS_LIBRARIES})
+
+install(TARGETS ${TGT} DESTINATION bin)