mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
569e59110e
* implement set videomode via json api * refactor grabbers: - new base class - move shared code to base class * fix osx * rework all cmakelist files with auto file collection. except leddevices (need further restructuring) * store current video and grabbing mode * add json stuff * remove grabbingmode - we do not want to expose it
34 lines
808 B
CMake
34 lines
808 B
CMake
|
|
# Define the current source locations
|
|
set(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/bonjour)
|
|
set(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/bonjour)
|
|
|
|
FILE ( GLOB Bonjour_SOURCES "${CURRENT_HEADER_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.cpp" )
|
|
|
|
add_library(bonjour ${Bonjour_SOURCES} )
|
|
|
|
target_link_libraries(bonjour
|
|
hyperion
|
|
hyperion-utils
|
|
Qt5::Network
|
|
)
|
|
|
|
IF (NOT APPLE)
|
|
set(USE_SHARED_AVAHI_LIBS ${DEFAULT_USE_SHARED_AVAHI_LIBS} CACHE BOOL "use avahi libraries from system")
|
|
|
|
if (USE_SHARED_AVAHI_LIBS)
|
|
target_link_libraries(bonjour
|
|
dns_sd
|
|
avahi-client
|
|
avahi-common
|
|
avahi-core)
|
|
else()
|
|
target_link_libraries(bonjour
|
|
libdns_sd.a
|
|
libavahi-client.a
|
|
libavahi-common.a
|
|
libavahi-core.a)
|
|
endif()
|
|
target_link_libraries(bonjour dbus-1)
|
|
ENDIF()
|