Commit Graph

21 Commits

Author SHA1 Message Date
probonopd 7b066b1aed Fix building on FreeBSD, including the example
Closes #55
2022-11-01 08:42:06 -04:00
Marc Reilly 668f7358c4 project: cmake: change include path for INSTALL_INTERFACE
This updates the include path used when this project is used/consumed
via find_package(). The include paths no longer need to be prefixed
with 'QtZeroConf', and so now they can be included the same regardless
of whether this project is being used via FetchContent or find_package

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
2022-11-01 20:14:05 +11:00
Marc Reilly 2318fb1987 project: bump min required cmake version to 3.4
Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
2022-11-01 10:30:24 +11:00
Marc Reilly 81253d92da project: CMake, set SOVERSION for shared libs. Project VERSION
Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
2022-11-01 10:30:24 +11:00
Marc Reilly d807d5ab37 project: link against avahi-common
Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
2022-11-01 10:30:24 +11:00
Marc Reilly 0889adbc23 project: cmake: allow building with Qt6
Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
2022-11-01 10:30:24 +11:00
David Kahles (KDV) 31fc8e5c72 Improve finding avahi-client
Unfortunately, there is no FindAvahi.cmake file available. Instead use
find_library and find_path to find the libavahi-client.so and
avahi-client/client.h files. This improves logging if the files are not found
and allows to use CMAKE_FIND_ROOT_PATH to alter the search paths for
crossplatform builds.
2022-04-08 21:19:08 -04:00
Florian Meinicke 755854a87f Add missing INSTALL_CMAKEDIR variable 2020-10-29 08:39:56 +01:00
Florian Meinicke ab274491fc Add proper CMake config file to install
so that QtZeroConf can be easily integrated with find_package
2020-10-29 07:52:08 +01:00
Florian Meinicke fe9d3cbc63 Add CMake project for example 2020-09-14 13:03:26 +02:00
Florian Meinicke 3fdf9dd8d8 Fix CMakeLists.txt for linux
Have to link to 'avahi-client' and not 'libavahi'
2020-09-14 13:03:26 +02:00
Florian Meinicke a8084c9eac Update CMakeLists.txt
to make QtZeroConf installable and usable from other projects
2020-09-14 13:03:26 +02:00
Florian Meinicke fe3751ecdb Fix CMakeLists.txt
* Add `project`
* Remove hardcoded values for controlling the library type (i.e. shared
or static) in favour of using `BUILD_SHARED_LIBS` and letting CMake
manage the rest
* Fix linker error (at least on Windows w/ MinGW) that
'legacy_stdio_definitions.lib' couldn't be found
2020-09-14 12:45:48 +02:00
Corentin Jabot 26521fb848 Fix build on azure 2020-09-14 12:45:48 +02:00
Corentin Jabot 10f457f2bf Fix windows build 2020-09-14 12:45:48 +02:00
Corentin Jabot 351a834af7 Fix windows build 2020-09-14 12:45:48 +02:00
Corentin Jabot a504ec17c7 Compile as static lib 2020-09-14 12:45:48 +02:00
Corentin Jabot ebb1958fff Build on android with cmake 2020-09-14 12:45:48 +02:00
Corentin Jabot 88d2d9475c Build as a shared lib 2020-09-14 12:45:48 +02:00
Corentin Jabot 0a69505312 Fix windows build 2020-09-14 12:45:48 +02:00
Corentin Jabot a09ffe6651 Fix cmake script 2020-09-14 12:45:48 +02:00