mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
* Added KMetaData cmake check
* Fixed Dolphin+KMetaData compilation * Moved knepomuk tests into kdebase svn path=/trunk/KDE/kdebase/apps/; revision=660109
This commit is contained in:
parent
8628125eb1
commit
f867a1a3a7
|
@ -82,18 +82,15 @@ qt4_add_dbus_adaptor(dolphin_SRCS
|
|||
org.kde.dolphin.MainWindow.xml
|
||||
dolphinmainwindow.h DolphinMainWindow)
|
||||
kde4_add_executable(dolphin ${dolphin_SRCS})
|
||||
# find Nepomuk's libkmetadata
|
||||
find_path(KMETADATA_INCLUDE_DIR NAMES kmetadata/kmetadata.h PATHS ${KDE4_INCLUDE_DIR})
|
||||
find_library(KMETADATA_LIBRARY NAMES kmetadata kmetadatatools PATHS ${KDE4_LIB_DIR})
|
||||
find_library(KMETADATA_TOOLS_LIBRARY NAMES kmetadatatools PATHS ${KDE4_LIB_DIR})
|
||||
if(KMETADATA_INCLUDE_DIR AND KMETADATA_LIBRARY AND KMETADATA_TOOLS_LIBRARY)
|
||||
set(KDE4_KMETADATA kmetadata kmetadatatools)
|
||||
set(HAVE_KMETADATA 1)
|
||||
else(KMETADATA_INCLUDE_DIR AND KMETADATA_LIBRARY)
|
||||
set(KDE4_KMETADATA "")
|
||||
endif(KMETADATA_INCLUDE_DIR AND KMETADATA_LIBRARY AND KMETADATA_TOOLS_LIBRARY)
|
||||
|
||||
if(KMetaData_FOUND)
|
||||
set(HAVE_KMETADATA 1)
|
||||
else(KMetaData_FOUND)
|
||||
set(KDE4_KMETADATA "")
|
||||
endif(KMetaData_FOUND)
|
||||
|
||||
configure_file(config-kmetadata.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kmetadata.h )
|
||||
target_link_libraries(dolphin ${KDE4_KDECORE_LIBS} ${KDE4_KDEPRINT_LIBS} ${KDE4_KFILE_LIBS} ${KDE4_KMETADATA} konq dolphinprivate)
|
||||
target_link_libraries(dolphin ${KDE4_KDECORE_LIBS} ${KDE4_KDEPRINT_LIBS} ${KDE4_KFILE_LIBS} ${KMETADATA_LIBRARIES} konq dolphinprivate)
|
||||
|
||||
install(TARGETS dolphin DESTINATION ${BIN_INSTALL_DIR})
|
||||
|
||||
|
|
Loading…
Reference in a new issue