Skip to content

Commit

Permalink
test Qt5
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangliangNan committed Dec 14, 2024
1 parent 93c9650 commit 5266c38
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/PolyFit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
# Instruct CMake to run uic automatically when needed.
set(CMAKE_AUTOUIC ON)
# Instruct CMake to run rcc automatically when needed.
set(CMAKE_AUTORCC ON)

# This will find the Qt files.
Expand All @@ -20,9 +21,9 @@ if (Qt6_FOUND)
message(STATUS "Building with Qt6")
set(QtLibs Qt::Core Qt::Widgets Qt::Xml Qt::OpenGL Qt::OpenGLWidgets)
else()
find_package(Qt5 REQUIRED COMPONENTS Core Widgets Xml OpenGL)
message("Building with Qt5")
set(QtLibs Qt::Core Qt::Widgets Qt::Xml Qt::OpenGL)
find_package(Qt5 COMPONENTS Core Gui OpenGL Widgets Xml REQUIRED)
message(STATUS "Building with Qt5")
set(QtLibs Qt5Core Qt5Gui Qt5OpenGL Qt5Widgets Qt5Xml)
endif()


Expand Down

0 comments on commit 5266c38

Please sign in to comment.