┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2007-05-02 10:00:16 +0000
committerDavid Faure <[email protected]>2007-05-02 10:00:16 +0000
commit5aa8b5ca9761864e61a3d002266ae8859ab3b368 (patch)
tree4b4c6ac91746d8bc1ef8356d87947784e8cfc36a /src
parent3cf6c8590f5390183ffb60b4a8f3f8050732de27 (diff)
Oh. It's in kdelibs, but it's not always compiled. Revert.
(and moved checks to the right place) svn path=/trunk/KDE/kdebase/apps/; revision=660320
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f90b7667c..5d51552a8 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -83,9 +83,11 @@ qt4_add_dbus_adaptor(dolphin_SRCS
dolphinmainwindow.h DolphinMainWindow)
kde4_add_executable(dolphin ${dolphin_SRCS})
-set(HAVE_KMETADATA 1)
+find_package(KMetaData)
+macro_bool_to_01(KMetaData_FOUND HAVE_KMETADATA)
+
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_LIBS} 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})