CMakeLists.txt 1.38 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
# we need QJson
set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
macro_optional_find_package(QJSON)
macro_log_feature(QJSON_FOUND "QJSON" "Json parser for Qt" "")

# bail out without it!
if (NOT QJSON_FOUND)
    message(WARNING "Project plugin needs QJSON Library.")
    return()
endif (NOT QJSON_FOUND)

Ralf Jung's avatar
Ralf Jung committed
12 13
# Ubuntu 12.10 needs the lower-case qjson
include_directories( ${QJSON_INCLUDE_DIR} ${qjson_INCLUDE_DIR} )
14

Christoph Cullmann's avatar
Christoph Cullmann committed
15 16 17 18 19 20 21
set(kateprojectplugin_PART_SRCS
  kateprojectplugin.cpp
  kateprojectpluginview.cpp
  kateproject.cpp
  kateprojectworker.cpp
  kateprojectitem.cpp
  kateprojectview.cpp
22
  kateprojectviewtree.cpp
23
  kateprojecttreeviewcontextmenu.cpp
Christoph Cullmann's avatar
Christoph Cullmann committed
24 25 26 27 28
  kateprojectinfoview.cpp
  kateprojectcompletion.cpp
  kateprojectindex.cpp
  kateprojectinfoviewindex.cpp
  kateprojectinfoviewterminal.cpp
29
  kateprojectinfoviewcodeanalysis.cpp
30
  kateprojectinfoviewnotes.cpp
Christoph Cullmann's avatar
Christoph Cullmann committed
31
)
32 33 34

kde4_add_plugin(kateprojectplugin ${kateprojectplugin_PART_SRCS})

Ralf Jung's avatar
Ralf Jung committed
35
# Ubuntu 12.10 needs the lower-case qjson
36
target_link_libraries(kateprojectplugin  ${KDE4_KDEUI_LIBS} ${QJSON_LIBRARIES} ${qjson_LIBRARIES} kateinterfaces ${KDE4_KTEXTEDITOR_LIBS})
37 38

########### install files ###############
39
install(TARGETS kateprojectplugin DESTINATION ${PLUGIN_INSTALL_DIR} )
40
install( FILES ui.rc  kateproject.example DESTINATION  ${DATA_INSTALL_DIR}/kate/plugins/project )
41
install( FILES kateprojectplugin.desktop DESTINATION  ${SERVICES_INSTALL_DIR} )