summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
blob: 8b49d558acfd201324d9a252c588084655989e5d (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
if (NOT WIN32)
#    SET(BUILD_SHARED_LIBS ON)
endif (NOT WIN32)

SET(CMAKE_INCLUDE_CURRENT_DIR ON)

INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})

SET(HEADERS 
    librcc.h
)

SET(INTERNAL_HEADERS
    internal.h
    curconfig.h
    engine.h
    fs.h
    lng.h
    lngconfig.h
    lngrecode.h
    opt.h
    plugin.h
    rccconfig.h
    rccdb4.h
    rccenca.h
    rccexternal.h
    rcchome.h
    rcciconv.h
    rcclist.h
    rcclocale.h
    rcclock.h
    rccmutex.h
    rccspell.h
    rccstring.h
    rcctranslate.h
    rccxml.h
    recode.h
)

SET(rcc_SRCS
    librcc.c
    curconfig.c
    engine.c
    fs.c
    lng.c
    lngconfig.c
    lngrecode.c
    opt.c
    plugin.c
    rccconfig.c
    rccdb4.c
    rccenca.c
    rccexternal.c
    rcchome.c
    rcciconv.c
    rcclist.c
    rcclocale.c
    rcclock.c
    rccmutex.c
    rccspell.c
    rccstring.c
    rcctranslate.c
    rccxml.c
    recode.c
    ${INTERNAL_HEADERS}
    ${HEADERS}
)

ADD_LIBRARY(rcc SHARED ${rcc_SRCS})
TARGET_LINK_LIBRARIES(rcc ${LIBXML2_LIBRARY} ${ICONV_LIBRARY} ${ENCA_LIBRARY} ${LIBRCD_LIBRARY} ${ZLIB_LIBRARY} ${WSOCK_LIBRARY})