Commit Graph

24 Commits

Author SHA1 Message Date
83df89fabe fix Android Qt 5.15 builds using cmake 2024-04-04 19:42:15 -04:00
a2b907b95f cmake change avahi to NDS for Android
Signed-off-by: Jonathan Bagg <drwho@infidigm.net>
2024-04-04 14:39:51 -04:00
38083c6126 cmake: Install using GNUInstallDirs 2023-09-27 19:27:15 -04:00
7b066b1aed Fix building on FreeBSD, including the example
Closes #55
2022-11-01 08:42:06 -04:00
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
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
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
d807d5ab37 project: link against avahi-common
Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
2022-11-01 10:30:24 +11:00
0889adbc23 project: cmake: allow building with Qt6
Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
2022-11-01 10:30:24 +11:00
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
755854a87f Add missing INSTALL_CMAKEDIR variable 2020-10-29 08:39:56 +01:00
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
fe9d3cbc63 Add CMake project for example 2020-09-14 13:03:26 +02:00
3fdf9dd8d8 Fix CMakeLists.txt for linux
Have to link to 'avahi-client' and not 'libavahi'
2020-09-14 13:03:26 +02:00
a8084c9eac Update CMakeLists.txt
to make QtZeroConf installable and usable from other projects
2020-09-14 13:03:26 +02:00
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
26521fb848 Fix build on azure 2020-09-14 12:45:48 +02:00
10f457f2bf Fix windows build 2020-09-14 12:45:48 +02:00
351a834af7 Fix windows build 2020-09-14 12:45:48 +02:00
a504ec17c7 Compile as static lib 2020-09-14 12:45:48 +02:00
ebb1958fff Build on android with cmake 2020-09-14 12:45:48 +02:00
88d2d9475c Build as a shared lib 2020-09-14 12:45:48 +02:00
0a69505312 Fix windows build 2020-09-14 12:45:48 +02:00
a09ffe6651 Fix cmake script 2020-09-14 12:45:48 +02:00