mirror of https://git.wownero.com/dsc/mxe.git
parent
31d99c63bd
commit
ed9dc43988
|
@ -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)
|
|
@ -42,4 +42,13 @@ define $(PKG)_BUILD
|
||||||
-W -Wall -Werror \
|
-W -Wall -Werror \
|
||||||
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
|
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
|
||||||
`'$(TARGET)-pkg-config' --cflags --libs $(PKG)`
|
`'$(TARGET)-pkg-config' --cflags --libs $(PKG)`
|
||||||
|
|
||||||
|
# set BLA_VENDOR and -fopenmp to find openblas
|
||||||
|
mkdir '$(BUILD_DIR).test-cmake'
|
||||||
|
cd '$(BUILD_DIR).test-cmake' && '$(TARGET)-cmake' \
|
||||||
|
-DPKG=$(PKG) \
|
||||||
|
-DBLA_VENDOR=OpenBLAS \
|
||||||
|
-DCMAKE_C_FLAGS=-fopenmp \
|
||||||
|
'$(PWD)/src/cmake/test'
|
||||||
|
$(MAKE) -C '$(BUILD_DIR).test-cmake' -j 1 install
|
||||||
endef
|
endef
|
||||||
|
|
Loading…
Reference in New Issue