mirror of
https://github.com/jbagg/QtZeroConf.git
synced 2025-08-01 02:24:25 +02:00
project: examples, enable building as standalone
Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
cmake_minimum_required(VERSION 3.4)
|
||||
project(QtZeroConfExample)
|
||||
cmake_minimum_required(VERSION 2.8.11)
|
||||
|
||||
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Gui Widgets REQUIRED)
|
||||
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Network)
|
||||
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Network Gui Widgets REQUIRED)
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
|
Reference in New Issue
Block a user