mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
42 lines
784 B
Text
42 lines
784 B
Text
![]() |
if(AVAHI_FOUND)
|
||
|
include_directories(${AVAHI_INCLUDE_DIR})
|
||
|
endif()
|
||
|
|
||
|
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=51006)
|
||
|
|
||
|
set(kdnssd_LIB_SRCS
|
||
|
kdnssd.cpp
|
||
|
)
|
||
|
|
||
|
add_library(kdnssd ${LIBRARY_TYPE} ${kdnssd_LIB_SRCS})
|
||
|
|
||
|
target_link_libraries(kdnssd PUBLIC
|
||
|
${KDE4_KDECORE_LIBS}
|
||
|
${QT_QTCORE_LIBRARY}
|
||
|
)
|
||
|
|
||
|
if(AVAHI_FOUND)
|
||
|
target_link_libraries(kdnssd PRIVATE ${AVAHI_LIBRARIES})
|
||
|
endif()
|
||
|
|
||
|
set_target_properties(kdnssd PROPERTIES
|
||
|
VERSION ${GENERIC_LIB_VERSION}
|
||
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
||
|
)
|
||
|
|
||
|
generate_export_header(kdnssd)
|
||
|
|
||
|
install(
|
||
|
FILES
|
||
|
${CMAKE_CURRENT_BINARY_DIR}/kdnssd_export.h
|
||
|
kdnssd.h
|
||
|
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}
|
||
|
COMPONENT Devel
|
||
|
)
|
||
|
|
||
|
install(
|
||
|
TARGETS kdnssd
|
||
|
EXPORT kdelibsLibraryTargets
|
||
|
${INSTALL_TARGETS_DEFAULT_ARGS}
|
||
|
)
|