kinfocenter: link to devinfo library on FreeBSD

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-02-15 14:30:37 +02:00
parent 9d913f96af
commit 4c63aa51d0
2 changed files with 16 additions and 14 deletions

View file

@ -1,6 +1,3 @@
# TODO: HAVE_LIBDEVINFO_H (for Solaris 7 and later)
# to be set if both -ldevinfo and libdevinfo.h exist
check_include_files(devinfo.h HAVE_DEVINFO_H) # info_fbsd.cpp
configure_file (../base/config-infocenter.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-infocenter.h )

View file

@ -3,29 +3,34 @@
include(../base/CMakeLists.txt)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/../base
${CMAKE_CURRENT_SOURCE_DIR}/../base
)
# FreeBSD devinfo library
find_library(DEVINFO_LIBRARY NAMES devinfo)
########### next target ###############
set(kcm_info_PART_SRCS main.cpp info.cpp ../base/os_current.cpp )
set(kcm_info_PART_SRCS main.cpp info.cpp ../base/os_current.cpp)
kde4_add_plugin(kcm_info ${kcm_info_PART_SRCS})
target_link_libraries(kcm_info ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${X11_X11_LIB})
target_link_libraries(kcm_info ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${X11_X11_LIB})
install(TARGETS kcm_info DESTINATION ${KDE4_PLUGIN_INSTALL_DIR} )
if(DEVINFO_LIBRARY)
target_link_libraries(kcm_info ${DEVINFO_LIBRARY})
endif()
install(TARGETS kcm_info DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
########### install files ###############
install(
FILES
dma.desktop
interrupts.desktop
ioports.desktop
scsi.desktop
xserver.desktop
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
dma.desktop
interrupts.desktop
ioports.desktop
scsi.desktop
xserver.desktop
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
)