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