File: CMakeLists.txt

package info (click to toggle)
kdevelop 4%3A4.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 18,360 kB
  • ctags: 11,484
  • sloc: cpp: 105,371; python: 522; ansic: 488; lex: 422; sh: 139; ruby: 120; makefile: 51; xml: 42; php: 12
file content (44 lines) | stat: -rw-r--r-- 1,187 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

#First remove the cpp language part default area, then set our own
remove_definitions( -DKDE_DEFAULT_DEBUG_AREA=9007 )
add_definitions( -DKDE_DEFAULT_DEBUG_AREA=9040 )

add_subdirectory(rpp)
add_subdirectory(tests)
#add_subdirectory(headergen)

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

set(kdevcppparser_LIB_SRCS
    ast.cpp
    default_visitor.cpp
    parentvisitor.cpp
    name_compiler.cpp
    visitor.cpp
    class_compiler.cpp
    control.cpp
    lexer.cpp
    parser.cpp
    listnode.cpp
    tokens.cpp
    dumptree.cpp
    parsesession.cpp
    type_compiler.cpp
    commentparser.cpp
    commentformatter.cpp
    codegenerator.cpp
    memorypool.cpp
)

# Note: This library doesn't follow API/ABI/BC rules and shouldn't have a SOVERSION
#       Its only purpose is to support the plugin without needing to add all source files
#       to the plugin target
kde4_add_library(kdev4cppparser SHARED ${kdevcppparser_LIB_SRCS})
target_link_libraries(kdev4cppparser LINK_PRIVATE
  ${KDEVPLATFORM_LANGUAGE_LIBRARIES}
  ${KDE4_KDECORE_LIBS}
  ${KDE4_KTEXTEDITOR_LIBS}
  kdev4cpprpp
  ${KDEVPLATFORM_INTERFACES_LIBRARIES}
)
install(TARGETS kdev4cppparser ${INSTALL_TARGETS_DEFAULT_ARGS} )