forked from jbagg/QtZeroConf
Add CMake project for example
This commit is contained in:
1 parent
3fdf9dd8d8
commit
fe9d3cbc63
3 files changed
+32
No files matched your search
@@ -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
|
||||
)
|
||||
Reference in new issue
Block a user