Add CMake project for example

This commit is contained in:
Florian Meinicke committed 2020-09-14 13:03:26 +02:00
1 parent 3fdf9dd8d8
commit fe9d3cbc63
3 files changed
+32

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
project(QtZeroConfExample)
cmake_minimum_required(VERSION 2.8.11)
find_package(Qt5 COMPONENTS Gui Widgets REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
# Find QtZeroConf library if we're building standalone
if(NOT TARGET QtZeroConf)
find_package(QtZeroConf CONFIG REQUIRED)
endif()
add_executable(QtZeroConfExample
window.h
window.cpp
main.cpp
)
target_link_libraries(QtZeroConfExample
QtZeroConf
Qt5::Gui Qt5::Widgets
)