~donmcc/ood

ref: 1182412fd4ece0cb55c4b3ebefee78b22c8c15bd ood/src/libood/CMakeLists.txt -rw-r--r-- 1013 bytes
1182412fDon McCaughey Add `ood_halt()` function. 3 months ago
                                                                                
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
add_library(libood STATIC
        ood.h
        ood.c

        ood/halt.c
        ood/halt.h
        ood/ptr_array.c
        ood/ptr_array.h
        ood/result.h
        ood/select_sets.h
        ood/select_sets.c
        ood/sockaddr.h
        ood/sockaddr.c
        ood/sockaddr_in.h
        ood/sockaddr_in.c
        ood/socket.h
        ood/socket.c

        ood/inet/address.h
        ood/inet/address.c
        ood/inet/socket.h
        ood/inet/socket.c

        ood/rss/document.c
        ood/rss/document.h
        )
set_target_properties(libood
        PROPERTIES OUTPUT_NAME ood
        )
target_include_directories(libood
        PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}"
        )

add_executable(libood_tests
        ood_tests.c

        ood/ptr_array_test.c
        ood/sockaddr_test.c
        ood/sockaddr_in_test.c

        ood/inet/address_test.c
        ood/inet/socket_test.c

        ood/rss/document_test.c
        )
target_link_libraries(libood_tests libood)
add_test(libood_tests libood_tests)