From ea03b988e02186b472493da31b906f522a5154f3 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Sat, 11 Jan 2020 23:44:46 +0100 Subject: [PATCH] Fixed CMake Windows build --- demo/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/demo/CMakeLists.txt b/demo/CMakeLists.txt index 6caafc9..f8d4998 100644 --- a/demo/CMakeLists.txt +++ b/demo/CMakeLists.txt @@ -20,8 +20,10 @@ set(ads_demo_LIBS ${ads_demo_LIBS} ${Qt5Widgets_LIBRARIES}) set(ads_demo_INCLUDE ${ads_demo_INCLUDE} ${Qt5Widgets_INCLUDE_DIRS}) set(ads_demo_COMPILE_DEFINE ${ads_demo_COMPILE_DEFINE} ${Qt5Widgets_COMPILE_DEFINITIONS}) if(WIN32) + find_package(Qt5AxContainer ${REQUIRED_QT_VERSION} REQUIRED) set(ads_demo_LIBS ${ads_demo_LIBS} ${Qt5AxContainer_LIBRARIES}) set(ads_demo_INCLUDE ${ads_demo_INCLUDE} ${Qt5AxContainer_INCLUDE_DIRS}) + set(ads_demo_COMPILE_DEFINE ${ads_demo_COMPILE_DEFINE} ${Qt5AxContainer_COMPILE_DEFINITIONS}) endif() set(CMAKE_INCLUDE_CURRENT_DIR ON) set(ads_demo_SRCS