Skip to content

Commit

Permalink
plugin-sbx: Support Qt5 and Qt6 in one cmake cfg.
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterGC committed May 30, 2021
1 parent 8676b0e commit 06cf615
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sandboxes/pluginlive/plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
project (MyPlugin)
set (CMAKE_AUTOMOC on)

find_package(Qt6 REQUIRED COMPONENTS Core Quick Qml)
find_package(Qt6 COMPONENTS Quick Core Qml QUIET)
if (NOT Qt6_FOUND)
find_package(Qt5 5.15 COMPONENTS Quick Core Qml REQUIRED)
endif()

add_library(${PROJECT_NAME} SHARED
myplugin.cpp
Expand Down

0 comments on commit 06cf615

Please sign in to comment.