~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to formatters/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
add_definitions( -DKDE_DEFAULT_DEBUG_AREA=9000 )
 
2
 
 
3
include_directories(lib)
 
4
 
 
5
########### astyle ###############
 
6
set(kdevastyle_PART_SRCS
 
7
    astyle_plugin.cpp
 
8
    astyle_preferences.cpp
 
9
    astyle_formatter.cpp
 
10
    lib/ASBeautifier.cpp
 
11
    lib/ASEnhancer.cpp
 
12
    lib/ASFormatter.cpp
 
13
    lib/ASResource.cpp
 
14
    lib/astyle_stringiterator.cpp
 
15
)
 
16
 
 
17
set(astyle_preferences_UI
 
18
    astyle_preferences.ui
 
19
)
 
20
 
 
21
kde4_add_ui_files(kdevastyle_PART_SRCS ${astyle_preferences_UI} )
 
22
kde4_add_plugin(kdevastyle ${kdevastyle_PART_SRCS})
 
23
target_link_libraries(kdevastyle
 
24
    ${KDE4_KDECORE_LIBS}
 
25
    ${KDE4_KDEUI_LIBS}
 
26
    ${KDE4_KPARTS_LIBS}
 
27
    ${KDE4_KIO_LIBS}
 
28
    ${KDE4_KTEXTEDITOR_LIBS}
 
29
    ${KDEVPLATFORM_INTERFACES_LIBRARIES}
 
30
    ${KDEVPLATFORM_PROJECT_LIBRARIES}
 
31
    ${KDEVPLATFORM_UTIL_LIBRARIES})
 
32
 
 
33
install(TARGETS kdevastyle DESTINATION ${PLUGIN_INSTALL_DIR} )
 
34
 
 
35
########### indent ###############
 
36
set(kdevindent_PART_SRCS
 
37
    indent_plugin.cpp
 
38
)
 
39
 
 
40
# set(indent_preferences_UI
 
41
#     indent_preferences.ui
 
42
# )
 
43
 
 
44
# kde4_add_ui_files(kdevastyle_PART_SRCS ${astyle_preferences_UI} )
 
45
kde4_add_plugin(kdevindent ${kdevindent_PART_SRCS})
 
46
target_link_libraries(kdevindent
 
47
    ${KDE4_KDECORE_LIBS}
 
48
    ${KDE4_KDEUI_LIBS}
 
49
    ${KDEVPLATFORM_INTERFACES_LIBRARIES}
 
50
    ${KDEVPLATFORM_UTIL_LIBRARIES})
 
51
 
 
52
install(TARGETS kdevindent DESTINATION ${PLUGIN_INSTALL_DIR} )
 
53
 
 
54
########### install files ###############
 
55
 
 
56
install( FILES kdevastyle.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
 
57
install( FILES kdevindent.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
 
58
 
 
59
 
 
60
add_subdirectory(tests)
 
 
b'\\ No newline at end of file'