-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
53 lines (41 loc) · 1022 Bytes
/
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
cmake_minimum_required(VERSION 3.5)
project(cc)
set(CMAKE_C_STANDARD 90)
set(TESTARRAY_FILES
src/config.h
src/color.h
src/xmalloc.h
src/xmalloc.c
src/array.h
src/array.c
src/unittest.h
src/testarray.c)
set(TESTCSTRING_FILES
src/cstring.h
src/cstring.c
src/unittest.h
src/testcstring.c)
set(TESTMD5_FILES
src/md5.h
src/md5.c
src/unittest.h
src/testmd5.c)
set(TESTSHA1_FILES
src/sha1.h
src/sha1.c
src/unittest.h
src/testsha1.c)
set(TESTCSPOOL_FILES
src/cstring.h
src/cstring.c
src/avltree.h
src/avltree.c
src/cspool.h
src/cspool.c
src/unittest.h
src/testcspool.c)
add_executable(testarray ${TESTARRAY_FILES})
add_executable(testcstring ${TESTCSTRING_FILES})
add_executable(testmd5 ${TESTMD5_FILES})
add_executable(testsha1 ${TESTSHA1_FILES})
add_executable(testcspool ${TESTCSPOOL_FILES})