Skip to content

Commit

Permalink
Appropiate include dirs for selected Qt version
Browse files Browse the repository at this point in the history
  • Loading branch information
YakoYakoYokuYoku authored and looooo committed Sep 24, 2024
1 parent ea29506 commit e56f0e7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions interfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,16 @@ if (SoQt_FOUND)
target_link_libraries(soqt PUBLIC ${Python_LIBRARIES})
endif ()

if (PIVY_USE_QT6)
set(QT_INC_DIRS ${Qt6Gui_INCLUDE_DIRS} ${Qt6Widgets_INCLUDE_DIRS})
else ()
set(QT_INC_DIRS ${Qt5Gui_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS})
endif ()

target_include_directories(soqt
PUBLIC
${SoQt_INCLUDE_DIRS}
${Qt5Gui_INCLUDE_DIRS}
${Qt5Widgets_INCLUDE_DIRS}
${QT_INC_DIRS}
${Python_INCLUDE_DIRS}
PRIVATE
${CMAKE_SOURCE_DIR}/interfaces
Expand Down

0 comments on commit e56f0e7

Please sign in to comment.