-
Notifications
You must be signed in to change notification settings - Fork 14
/
CMakeLists.txt
231 lines (220 loc) · 4.33 KB
/
CMakeLists.txt
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
project(espresso C)
cmake_minimum_required(VERSION 3.10)
add_executable(
espresso
espresso/cofactor.c
espresso/cols.c
espresso/compl.c
espresso/contain.c
espresso/cubestr.c
espresso/cvrin.c
espresso/cvrm.c
espresso/cvrmisc.c
espresso/cvrout.c
espresso/dominate.c
espresso/espresso.c
espresso/essen.c
espresso/expand.c
espresso/gasp.c
espresso/gimpel.c
espresso/globals.c
espresso/indep.c
espresso/irred.c
espresso/main.c
espresso/matrix.c
espresso/mincov.c
espresso/part.c
espresso/reduce.c
espresso/rows.c
espresso/set.c
espresso/setc.c
espresso/sminterf.c
espresso/solution.c
espresso/sparse.c
espresso/unate.c)
set_property(TARGET espresso PROPERTY C_STANDARD 99)
include(GNUInstallDirs)
install(TARGETS espresso RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
# documentation
option(BUILD_DOC "Build documentation." ON)
if(BUILD_DOC)
find_program(ASCIIDOCTOR_EXE asciidoctor)
if(NOT ASCIIDOCTOR_EXE)
message(SEND_ERROR "asciidoctor not found, cannot create man pages")
endif()
set(DOCDIR ${CMAKE_CURRENT_SOURCE_DIR}/doc)
set(A2M ${ASCIIDOCTOR_EXE} -b manpage)
macro(add_man SRC DST SECT)
add_custom_command(
OUTPUT ${DST}.${SECT}
COMMAND ${A2M} -o ${DST}.${SECT} ${DOCDIR}/${SRC}.adoc
MAIN_DEPENDENCY ${DOCDIR}/${SRC}.adoc)
set(MANS ${MANS} ${DST}.${SECT})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${DST}.${SECT}
DESTINATION ${CMAKE_INSTALL_MANDIR}/man${SECT})
endmacro(add_man)
add_man(espresso espresso 1)
add_custom_target(doc ALL DEPENDS ${MANS})
endif()
enable_testing()
foreach(
PLA
examples/al2
examples/alcom
examples/alu1
examples/alu2
examples/alu3
examples/amd
examples/apla
examples/b10
examples/b2
examples/b3
examples/b4
examples/b7
examples/bc0
examples/bca
examples/bcb
examples/bcc
examples/bcd
examples/br1
examples/br2
examples/check
examples/check1
examples/check2
examples/chkn
examples/clpl
examples/dc1
examples/dc2
examples/dekoder
examples/dist
examples/dk17
examples/dk27
examples/dk48
examples/ex7
examples/exep
examples/exp
examples/exps
examples/f51m
examples/gary
examples/in0
examples/in1
examples/in2
examples/in3
examples/in4
examples/in5
examples/in6
examples/in7
examples/intb
examples/lin.rom
examples/luc
examples/m1
examples/m2
examples/m3
examples/m4
examples/mark1
examples/max1024
examples/max128
examples/max46
examples/max512
examples/mlp4
examples/mp2d
examples/mytest
examples/mytest2
examples/mytest3
examples/newapla
examples/newapla1
examples/newapla2
examples/newbyte
examples/newcond
examples/newcpla1
examples/newcpla2
examples/newcwp
examples/newill
examples/newtag
examples/newtpla
examples/newtpla1
examples/newtpla2
examples/newxcpla1
examples/opa
examples/p82
examples/pope.rom
examples/prom1
examples/prom2
examples/risc
examples/root
examples/ryy6
examples/sex
examples/sqn
examples/sqr6
examples/t1
examples/t2
examples/t3
examples/t4
examples/tcheck
examples/tms
examples/vg2
examples/vtx1
examples/wim
examples/x1dn
examples/x6dn
examples/x9dn
hard_examples/ex1010
hard_examples/ex4
hard_examples/ibm
hard_examples/jbp
hard_examples/mainpla
hard_examples/misg
hard_examples/mish
hard_examples/misj
hard_examples/pdc
hard_examples/shift
hard_examples/signet
hard_examples/soar.pla
hard_examples/test2
hard_examples/test3
hard_examples/ti
hard_examples/ts10
hard_examples/x2dn
hard_examples/x7dn
hard_examples/xparc
tlex/5xp1.pla
tlex/9sym.pla
tlex/alu4.pla
tlex/apex1.pla
tlex/apex2.pla
tlex/apex3.pla
tlex/apex4.pla
tlex/apex5.pla
tlex/b12.pla
tlex/bw.pla
tlex/clip.pla
tlex/con1.pla
tlex/cordic.pla
tlex/cps.pla
tlex/duke2.pla
tlex/e64.pla
tlex/ex5.pla
tlex/inc.pla
tlex/misex1.pla
tlex/misex2.pla
tlex/misex3c.pla
tlex/misex3.pla
# tlex/o64.pla
tlex/rd53.pla
tlex/rd73.pla
tlex/rd84.pla
tlex/sao2.pla
tlex/seq.pla
tlex/spla.pla
tlex/squar5.pla
tlex/t481.pla
tlex/table3.pla
tlex/table5.pla
tlex/vg2.pla
tlex/xor5.pla
tlex/Z5xp1.pla
tlex/Z9sym.pla)
add_test(run_${PLA} sh -c
"./espresso < ${CMAKE_CURRENT_SOURCE_DIR}/examples/${PLA}")
set_tests_properties(run_${PLA} PROPERTIES TIMEOUT 10)
endforeach()