CMakeLists.txt 1.28 KB
Newer Older
1
#add_subdirectory(libdiff2)
2 3 4

########### next target ###############

5
add_definitions( ${KDE4_ENABLE_EXCEPTIONS})
6
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/settings)
7 8 9 10 11

set(patchreview_PART_SRCS      
    patchreview.cpp
    documenthighlighter.cpp
    localpatchsource.cpp
12 13
    settings/diffsettings.cpp
    settings/settingsbase.cpp 
14 15 16 17 18 19 20 21 22 23 24 25 26

    libdiff2/kompareprocess.cpp
    libdiff2/komparemodellist.cpp
    libdiff2/diffmodellist.cpp
    libdiff2/diffmodel.cpp
    libdiff2/difference.cpp
    libdiff2/diffhunk.cpp
    libdiff2/levenshteintable.cpp
    libdiff2/parser.cpp
    libdiff2/parserbase.cpp
    libdiff2/cvsdiffparser.cpp
    libdiff2/diffparser.cpp
    libdiff2/perforceparser.cpp
27 28 29 30 31 32 33 34 35
)

set (patchreview_UI
       patchreview.ui)

kde4_add_ui_files(patchreview_PART_SRCS ${patchreview_UI} )


kde4_add_plugin(kdevpatchreview ${patchreview_PART_SRCS})
36
target_link_libraries(kdevpatchreview ${KDE4_KDEUI_LIBS} ${KDE4_KTEXTEDITOR_LIBS} ${KDE4_KPARTS_LIBS} kdevplatforminterfaces kdevplatformutil ${KDE4_KDE3SUPPORT_LIBS} sublime)
37 38 39 40 41 42 43 44

install(TARGETS kdevpatchreview DESTINATION ${PLUGIN_INSTALL_DIR})


########### install files ###############

install(FILES kdevpatchreview.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(FILES kdevpatchreview.rc DESTINATION ${DATA_INSTALL_DIR}/kdevpatchreview)