diff options
author | Boris Pek <tehnick-8@yandex.ru> | 2017-03-28 15:10:38 (GMT) |
---|---|---|
committer | Boris Pek <tehnick-8@yandex.ru> | 2017-03-29 09:58:30 (GMT) |
commit | ca1a94bb9ebfdec702652cb16a2b825e71c8d31f (patch) | |
tree | 6a7e7a02b04c90cec4bfe7c086b653992bb12f26 | |
parent | 150c9d34d22a64e1a5b2bd51ae0d81c9ebd5a8f4 (diff) | |
download | mxe-ca1a94bb9ebfdec702652cb16a2b825e71c8d31f.zip mxe-ca1a94bb9ebfdec702652cb16a2b825e71c8d31f.tar.gz mxe-ca1a94bb9ebfdec702652cb16a2b825e71c8d31f.tar.bz2 |
qca: more tests
-rw-r--r-- | src/qca-test.cmake | 22 | ||||
-rw-r--r-- | src/qca.mk | 7 |
2 files changed, 29 insertions, 0 deletions
diff --git a/src/qca-test.cmake b/src/qca-test.cmake new file mode 100644 index 0000000..05b9566 --- /dev/null +++ b/src/qca-test.cmake @@ -0,0 +1,22 @@ +# 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(CXX) +add_executable(${TGT} ${CMAKE_CURRENT_LIST_DIR}/${PKG}-test.cpp) + +find_package(Qt5Core REQUIRED) +find_package(Qca-qt5 REQUIRED) + +include_directories (${Qt5Core_INCLUDE_DIRS}) +target_link_libraries(${TGT} Qt5::Core qca-qt5) + +# Statically link QCA plugins when necessary +if(BUILD_STATIC_LIBS) + target_link_libraries(${TGT} qca-ossl) +endif(BUILD_STATIC_LIBS) + +install(TARGETS ${TGT} DESTINATION bin) + @@ -26,6 +26,13 @@ define $(PKG)_BUILD $(MAKE) -C '$(BUILD_DIR)/test-qca' -j $(JOBS) $(BUILD_TYPE) $(INSTALL) -m755 '$(BUILD_DIR)/test-qca/$(BUILD_TYPE)/test-qca-qmake.exe' '$(PREFIX)/$(TARGET)/bin/' + # build test as cmake project + mkdir '$(1).test-cmake' + cd '$(1).test-cmake' && $(TARGET)-cmake \ + -DPKG=$(PKG) \ + '$(PWD)/src/cmake/test' + $(MAKE) -C '$(1).test-cmake' -j 1 install VERBOSE=ON + # build test manually '$(TARGET)-g++' \ -W -Wall -Werror -std=gnu++11 \ |