From c7ee4d5a1ad2df1344f80d903cc4c0206673d7cb Mon Sep 17 00:00:00 2001 From: Chris Burghart Date: Thu, 27 Oct 2022 11:07:29 -0600 Subject: [PATCH] Add needed cmake Qt build dependencies in qtplot --- codebase/libs/qtplot/src/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/codebase/libs/qtplot/src/CMakeLists.txt b/codebase/libs/qtplot/src/CMakeLists.txt index ac4cb04dff..708a98bbe5 100644 --- a/codebase/libs/qtplot/src/CMakeLists.txt +++ b/codebase/libs/qtplot/src/CMakeLists.txt @@ -11,6 +11,8 @@ project (libqtplot) +find_package(Qt5 REQUIRED COMPONENTS Widgets) + # include directories include_directories (./include) @@ -45,6 +47,7 @@ include_directories (../../shapelib/src/include) include_directories (../../tdrp/src/include) include_directories (../../titan/src/include) include_directories (../../toolsa/src/include) +include_directories (${Qt5Widgets_INCLUDE_DIRS}) include_directories (${CMAKE_INSTALL_PREFIX}/include) if (DEFINED X11_X11_INCLUDE_PATH) include_directories (${X11_X11_INCLUDE_PATH}) @@ -78,6 +81,8 @@ else(APPLE) add_library (qtplot SHARED ${SRCS}) endif(APPLE) +target_link_libraries(Qt::Widgets) + # install INSTALL(TARGETS qtplot