From b25c13c1551456dc89ca959c7133b1cc6117532e Mon Sep 17 00:00:00 2001 From: Charles Barto Date: Tue, 1 Nov 2016 19:19:05 -0400 Subject: made some qt5 fixes --- tests/qt5/CMakeLists.txt | 10 ++++++++++ tests/qt5/main.cpp | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/qt5/CMakeLists.txt create mode 100644 tests/qt5/main.cpp (limited to 'tests') diff --git a/tests/qt5/CMakeLists.txt b/tests/qt5/CMakeLists.txt new file mode 100644 index 000000000..98667ef11 --- /dev/null +++ b/tests/qt5/CMakeLists.txt @@ -0,0 +1,10 @@ + +cmake_minimum_required(VERSION 3.6) +project(qt5-base-test) +set(CMAKE_AUTOMOC ON) +find_package(Qt5Widgets) +find_package(ZLIB) +find_library(PCRE_LIBRARY NAMES pcre16) +add_executable(test_qt main.cpp) + +target_link_libraries(test_qt Qt5::Widgets ZLIB::ZLIB ${PCRE_LIBRARY}) \ No newline at end of file diff --git a/tests/qt5/main.cpp b/tests/qt5/main.cpp new file mode 100644 index 000000000..cec294069 --- /dev/null +++ b/tests/qt5/main.cpp @@ -0,0 +1,9 @@ +#include +#include +#include +int main(int argc, char** argv) { + auto buildABI = QSysInfo::buildAbi().toStdString(); + fprintf(stdout, "%s\n", buildABI.c_str()); + printf("%d\n", QSysInfo::windowsVersion()); + return 0; +} \ No newline at end of file -- cgit v1.2.3