kde-workspace/plasma/runners/bookmarks/CMakeLists.txt

46 lines
1.5 KiB
Text
Raw Normal View History

2014-11-13 19:30:51 +02:00
########### next target ###############
set(EXTERNAL_LIBS ${KDE4_KIO_LIBS} ${QT_QTSCRIPT_LIBRARY} ${KDE4_PLASMA_LIBS} ${QT_QTSQL_LIBRARY})
if(QJSON_FOUND)
add_definitions(-DHAVE_QJSON=1)
# Some distributions (e.g. Debian or Ubuntu 12.10) seem to install a QJSONConfig.cmake with lower-case variables,
# which is preferred to our FindQJSON.cmake. Make sure this does not break the build.
set(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${QJSON_LIBRARIES} ${qjson_LIBRARIES} )
include_directories(${QJSON_INCLUDE_DIR} ${qjson_INCLUDE_DIR})
endif(QJSON_FOUND)
set(krunner_bookmarksrunner_SRCS
browserfactory.cpp
bookmarkmatch.cpp
faviconfromblob.cpp
favicon.cpp
fetchsqlite.cpp
browsers/opera.cpp
bookmarksrunner.cpp
browsers/kdebrowser.cpp
browsers/firefox.cpp
)
if(QJSON_FOUND)
set(krunner_bookmarksrunner_SRCS
${krunner_bookmarksrunner_SRCS}
browsers/chromefindprofile.cpp
browsers/chrome.cpp
)
2014-11-13 19:30:51 +02:00
endif(QJSON_FOUND)
kde4_add_plugin(krunner_bookmarksrunner ${krunner_bookmarksrunner_SRCS})
target_link_libraries(krunner_bookmarksrunner ${EXTERNAL_LIBS})
install(TARGETS krunner_bookmarksrunner DESTINATION ${PLUGIN_INSTALL_DIR} )
########### install files ###############
install(FILES plasma-runner-bookmarks.desktop DESTINATION ${SERVICES_INSTALL_DIR})
# Currently tests include only chrome, so no need to get include them if json is not found
2015-09-01 04:37:19 +03:00
if(QJSON_FOUND AND ENABLE_TESTING)
2014-11-13 19:30:51 +02:00
add_subdirectory(tests)
2015-09-01 04:37:19 +03:00
endif()