Tue, 28 Dec 2021 17:49:52 +0100
fix missing cleanup in test_hl_linked_list_from_array
1 set(sources
2 utils.c
3 allocator.c
4 linked_list.c
5 tree.c
6 buffer.c
7 )
8 set(headers
9 cx/utils.h
10 cx/allocator.h
11 cx/list.h
12 cx/linked_list.h
13 cx/tree.h
14 cx/buffer.h
15 )
17 add_library(ucx SHARED ${sources})
18 add_library(ucx_static STATIC ${sources})
20 target_include_directories(ucx PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
21 target_include_directories(ucx_static PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
23 set_target_properties(ucx PROPERTIES SOVERSION 4 VERSION 4.0.0)
24 set_target_properties(ucx_static PROPERTIES VERSION ${CMAKE_PROJECT_VERSION})
26 # it is sufficient to specify the headers for one of the targets
27 set_target_properties(ucx PROPERTIES PUBLIC_HEADER "${headers}")
29 include(GNUInstallDirs)
30 install(TARGETS ucx ucx_static
31 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
32 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
33 PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/ucx)