summaryrefslogtreecommitdiff
path: root/klm/lm/CMakeLists.txt
blob: b95cddee5edcb11b0fa03872c265992aebdc3b5a (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)

find_package(RT)

set(build_binary_SRCS build_binary_main.cc)
add_executable(build_binary ${build_binary_SRCS})
target_link_libraries(build_binary klm klm_util klm_util_double z ${RT_LIBRARIES})


set(ngram_query_SRCS query_main.cc)
add_executable(ngram_query ${ngram_query_SRCS})
target_link_libraries(ngram_query klm klm_util klm_util_double z ${RT_LIBRARIES})

set(klm_STAT_SRCS
    bhiksha.hh
    binary_format.hh
    blank.hh
    config.hh
    enumerate_vocab.hh
    facade.hh
    left.hh
    lm_exception.hh
    max_order.hh
    model.hh
    model_type.hh
    ngram_query.hh
    partial.hh
    quantize.hh
    read_arpa.hh
    return.hh
    search_hashed.hh
    search_trie.hh
    sizes.hh
    state.hh
    trie.hh
    trie_sort.hh
    value.hh
    value_build.hh
    virtual_interface.hh
    vocab.hh
    weights.hh
    word_index.hh
    bhiksha.cc
    binary_format.cc
    config.cc
    lm_exception.cc
    quantize.cc
    model.cc
    read_arpa.cc
    search_hashed.cc
    search_trie.cc
    sizes.cc
    trie.cc
    trie_sort.cc
    value_build.cc
    virtual_interface.cc
    vocab.cc)

add_library(klm STATIC ${klm_STAT_SRCS})


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




#original Makefile.am contents follow:

#bin_PROGRAMS = build_binary ngram_query
#
#build_binary_SOURCES = build_binary_main.cc
#build_binary_LDADD = libklm.a ../util/libklm_util.a ../util/double-conversion/libklm_util_double.a -lz
#
#ngram_query_SOURCES = query_main.cc
#ngram_query_LDADD = libklm.a ../util/libklm_util.a ../util/double-conversion/libklm_util_double.a -lz
#
##noinst_PROGRAMS = \
##  ngram_test
##TESTS = ngram_test
##ngram_test_SOURCES = ngram_test.cc
##ngram_test_LDADD = ../util/libklm_util.a
#
#noinst_LIBRARIES = libklm.a
#
#libklm_a_SOURCES = \
#  bhiksha.hh \
#  binary_format.hh \
#  blank.hh \
#  config.hh \
#  enumerate_vocab.hh \
#  facade.hh \
#  left.hh \
#  lm_exception.hh \
#  max_order.hh \
#  model.hh \
#  model_type.hh \
#  ngram_query.hh \
#  partial.hh \
#  quantize.hh \
#  read_arpa.hh \
#  return.hh \
#  search_hashed.hh \
#  search_trie.hh \
#  sizes.hh \
#  state.hh \
#  trie.hh \
#  trie_sort.hh \
#  value.hh \
#  value_build.hh \
#  virtual_interface.hh \
#  vocab.hh \
#  weights.hh \
#  word_index.hh \
#  bhiksha.cc \
#  binary_format.cc \
#  config.cc \
#  lm_exception.cc \
#	quantize.cc \
#  model.cc \
#  read_arpa.cc \
#  search_hashed.cc \
#  search_trie.cc \
#  sizes.cc \
#  trie.cc \
#	trie_sort.cc \
#	value_build.cc \
#  virtual_interface.cc \
#  vocab.cc
#
#AM_CPPFLAGS = -W -Wall -Wno-sign-compare -I$(top_srcdir)/klm
#