Skip to content

Commit

Permalink
improve cmake message
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangliangNan committed Jan 3, 2025
1 parent ed68821 commit 89e2d34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ project(Easy3D VERSION ${Easy3D_VERSION_STRING})
# specify the C++ standard
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
message("-- Setting C++11")
message(STATUS "Using C++11")

################################################################################

Expand Down
2 changes: 2 additions & 0 deletions cmake/UseQt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ set(CMAKE_AUTORCC ON)
find_package(Qt6 COMPONENTS Core Widgets OpenGL OpenGLWidgets QUIET)
if (Qt6_FOUND)
message(STATUS "Found Qt6 version: ${Qt6Core_VERSION}")
message(STATUS "Qt6 directory: ${Qt6_DIR}")
set(QtLibs Qt::Core Qt::Widgets Qt::OpenGL Qt::OpenGLWidgets)
else()
find_package(Qt5 COMPONENTS Core Widgets OpenGL QUIET)
if (Qt5_FOUND)
message(STATUS "Found Qt5 version: ${Qt5Core_VERSION}")
message(STATUS "Qt5 directory: ${Qt5_DIR}")
set(QtLibs Qt5::Core Qt5::Widgets Qt5::OpenGL)
else()
message(FATAL_ERROR "Qt is required, either Qt6 or Qt5, but both cannot be found")
Expand Down

0 comments on commit 89e2d34

Please sign in to comment.