Skip to content

Commit

Permalink
Hack to allow access to QT::Gui private
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurélien Labrosse committed Oct 1, 2018
1 parent 75f090c commit afa2c32
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ find_package(Qt5Core CONFIG REQUIRED)
find_package(Qt5Gui CONFIG REQUIRED)
find_package(Qt5Test CONFIG REQUIRED)


# hack to make private part of QtGui available
set(Qt5Gui_PRIVATE_INCLUDE_DIRS "${Qt5Gui_INCLUDE_DIRS}/${Qt5Gui_VERSION}/QtGui")
foreach(_qt_gui_include_dir ${Qt5Gui_INCLUDE_DIRS})
if(${_qt_gui_include_dir} MATCHES "include/QtCore")
set(Qt5Gui_PRIVATE_INCLUDE_DIRS "${_qt_gui_include_dir}/${Qt5Gui_VERSION}/QtGui")
endif()
endforeach()

include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/src/xlsx/
Expand Down

0 comments on commit afa2c32

Please sign in to comment.