1
0
mirror of https://github.com/QtExcel/QXlsx.git synced 2025-01-16 04:42:53 +08:00

Qt5::Core uneeded - already dep in Qt5::Gui target

This commit is contained in:
Dan Dees 2020-10-23 06:03:08 +07:00
parent b41daf8721
commit 1d62a7f919

View File

@ -4,7 +4,7 @@ project(QXlsx VERSION 1.3.56 LANGUAGES CXX)
include(GNUInstallDirs)
find_package(Qt5 5.6.0 REQUIRED COMPONENTS Core Gui)
find_package(Qt5 5.6.0 REQUIRED COMPONENTS Gui)
find_package(Qt5Gui CONFIG REQUIRED Private)
set(CMAKE_AUTOMOC ON)
@ -39,7 +39,7 @@ target_sources(QXlsx PRIVATE
${files_cpp} ${files_h}
)
target_link_libraries(QXlsx PUBLIC Qt5::Core Qt5::Gui Qt5::GuiPrivate)
target_link_libraries(QXlsx PUBLIC Qt5::Gui Qt5::GuiPrivate)
target_include_directories(QXlsx
PRIVATE ${PROJECT_SOURCE_DIR}/QXlsx/header
INTERFACE ${CMAKE_INSTALL_FULL_INCLUDEDIR}/QXlsx)