aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/libotr/CMakeLists.txt
blob: 974a68fb8933ed6d00b4a71ed1daec5dc306be68 (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
# -*- cmake -*-

project(libotr)

if (WINDOWS)
    include_directories(
        ../gpg.vs/inc.vs
        ../gpg.vs/libgpg-error-1.1.vs/custom
        ../gpg.vs/libgcrypt-1.2.2.vs/custom
        ../libgpg-error/libgpg-error-1.0/src
        ../libgcrypt/libgcrypt-1.2.2/src
        )
else (WINDOWS)
    include_directories(
        ../libgpg-error/libgpg-error-1.0/src
        ../libgcrypt/libgcrypt-1.2.2/src
        )
endif (WINDOWS)

set(libotr_SOURCE_FILES
    libotr-3.2.0/src/auth.c
    libotr-3.2.0/src/b64.c
    libotr-3.2.0/src/context.c
    libotr-3.2.0/src/dh.c
    libotr-3.2.0/src/mem.c
    libotr-3.2.0/src/message.c
    libotr-3.2.0/src/privkey.c
    libotr-3.2.0/src/proto.c
    libotr-3.2.0/src/sm.c
    libotr-3.2.0/src/tlv.c
    libotr-3.2.0/src/userstate.c
    )

set(libotr_HEADER_FILES
    CMakeLists.txt

    libotr-3.2.0/src/auth.h
    libotr-3.2.0/src/b64.h
    libotr-3.2.0/src/context.h
    libotr-3.2.0/src/dh.h
    libotr-3.2.0/src/mem.h
    libotr-3.2.0/src/message.h
    libotr-3.2.0/src/privkey-t.h
    libotr-3.2.0/src/privkey.h
    libotr-3.2.0/src/proto.h
    libotr-3.2.0/src/serial.h
    libotr-3.2.0/src/sm.h
    libotr-3.2.0/src/tlv.h
    libotr-3.2.0/src/userstate.h
    libotr-3.2.0/src/version.h
    )

set_source_files_properties(${libotr_HEADER_FILES}
                            PROPERTIES HEADER_FILE_ONLY TRUE)

list(APPEND libotr_SOURCE_FILES ${libotr_HEADER_FILES})

add_library (libotr ${libotr_SOURCE_FILES})
target_link_libraries(
    libotr
    )