From 0a3b5d3d75bbfa691fb2c59c448c90b40ae070e7 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Tue, 20 Sep 2011 10:07:55 +0200 Subject: [PATCH] Search for QJson using pkgconfig. --- CMakeLists.txt | 3 +++ src/CMakeLists.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b4df5a4cd..a1f0d581e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,6 +49,7 @@ find_package(PkgConfig REQUIRED) find_package(Protobuf) pkg_check_modules(TAGLIB REQUIRED taglib>=1.6) +pkg_check_modules(QJSON REQUIRED QJson) pkg_check_modules(GSTREAMER gstreamer-0.10) pkg_check_modules(GSTREAMER_BASE gstreamer-base-0.10) pkg_check_modules(GSTREAMER_APP gstreamer-app-0.10) @@ -130,6 +131,7 @@ endif(NOT PROTOBUF_LITE_LIBRARY) # Set up definitions and paths add_definitions(${QT_DEFINITIONS}) link_directories(${TAGLIB_LIBRARY_DIRS}) +link_directories(${QJSON_LIBRARY_DIRS}) link_directories(${GSTREAMER_LIBRARY_DIRS}) # Don't try to use webkit if their include directories couldn't be found. @@ -140,6 +142,7 @@ endif (NOT QT_QTWEBKIT_INCLUDE_DIR) include(${QT_USE_FILE}) include_directories(${Boost_INCLUDE_DIRS}) include_directories(${TAGLIB_INCLUDE_DIRS}) +include_directories(${QJSON_INCLUDE_DIRS}) include_directories(${GSTREAMER_INCLUDE_DIRS}) include_directories(${GLIB_INCLUDE_DIRS}) include_directories(${GLIBCONFIG_INCLUDE_DIRS}) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e4c1d8a00..d3036ecdc 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1027,11 +1027,11 @@ target_link_libraries(clementine_lib chardet echoprint sha2 - qjson ${ECHONEST_LIBRARIES} ${GOBJECT_LIBRARIES} ${GLIB_LIBRARIES} ${TAGLIB_LIBRARIES} + ${QJSON_LIBRARIES} ${QT_LIBRARIES} ${GSTREAMER_BASE_LIBRARIES} ${GSTREAMER_LIBRARIES}