Skip to content
Permalink
Browse files

[cmake] use target_include_directories for gui system includes

  • Loading branch information
3nids committed Jan 12, 2021
1 parent 84afbea commit e3bf72c200c9608bc2f973b6ea19875b4183cde7
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/gui/CMakeLists.txt
@@ -1367,10 +1367,6 @@ include_directories(
${CMAKE_BINARY_DIR}/src/ui
${CMAKE_BINARY_DIR}/src/native
)
include_directories(SYSTEM
${QWT_INCLUDE_DIR}
${QSCINTILLA_INCLUDE_DIR}
)

if (WITH_EPT)
include_directories(
@@ -1410,6 +1406,11 @@ add_library(qgis_gui SHARED
${QGIS_GUI_SRCS} ${QGIS_GUI_HDRS} ${QGIS_GUI_PRIVATE_HDRS}
)

target_include_directories(qgis_gui SYSTEM PUBLIC
${QWT_INCLUDE_DIR}
${QSCINTILLA_INCLUDE_DIR}
)

GENERATE_EXPORT_HEADER(
qgis_gui
BASE_NAME GUI

0 comments on commit e3bf72c

Please sign in to comment.
You can’t perform that action at this time.