Skip to content

Commit

Permalink
cleaned up qt stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
eswardhinak committed Nov 18, 2024
1 parent 873d5ac commit 6348a2e
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)

# Configure Qt
set(QT_STATIC ON)
find_package(QT NAMES Qt6 REQUIRED COMPONENTS Widgets)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets)
find_package(Qt6 REQUIRED COMPONENTS Widgets)


set (OpenCV_DIR /usr/local/Cellar/opencv/4.9.0_12/lib/cmake/opencv4)
find_package(OpenCV REQUIRED)
Expand All @@ -33,15 +33,11 @@ set(PROJECT_SOURCES
src/boardstate.h src/boardstate.cpp
)

if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
qt_add_executable(puzzledpictures
MANUAL_FINALIZATION
${PROJECT_SOURCES}
README.md
)
else()
message(FATAL_ERROR, "Qt version >= 6 required")
endif()
qt_add_executable(puzzledpictures
MANUAL_FINALIZATION
${PROJECT_SOURCES}
README.md
)


target_link_libraries(puzzledpictures PRIVATE
Expand Down

0 comments on commit 6348a2e

Please sign in to comment.