src/CMakeLists.txt

Wed, 03 Aug 2022 17:27:55 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 03 Aug 2022 17:27:55 +0200
changeset 571
f83583a0bbac
parent 563
69a83fad8a35
child 576
ba0c4ff6698e
permissions
-rw-r--r--

#201 - add mempool implementation

universe@375 1 set(sources
universe@483 2 utils.c
universe@391 3 allocator.c
universe@503 4 list.c
universe@398 5 linked_list.c
olaf@424 6 tree.c
universe@483 7 buffer.c
universe@563 8 hash_key.c
universe@549 9 hash_map.c
universe@571 10 basic_mempool.c
universe@375 11 )
universe@377 12 set(headers
universe@549 13 cx/common.h
universe@483 14 cx/utils.h
universe@391 15 cx/allocator.h
universe@494 16 cx/iterator.h
universe@390 17 cx/list.h
universe@398 18 cx/linked_list.h
universe@470 19 cx/tree.h
universe@483 20 cx/buffer.h
universe@549 21 cx/map.h
universe@563 22 cx/hash_key.h
universe@549 23 cx/hash_map.h
universe@571 24 cx/mempool.h
universe@571 25 cx/basic_mempool.h
universe@549 26 )
universe@375 27
universe@375 28 add_library(ucx SHARED ${sources})
universe@375 29 add_library(ucx_static STATIC ${sources})
universe@375 30
universe@375 31 target_include_directories(ucx PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
universe@375 32 target_include_directories(ucx_static PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
universe@375 33
universe@390 34 set_target_properties(ucx PROPERTIES SOVERSION 4 VERSION 4.0.0)
universe@375 35 set_target_properties(ucx_static PROPERTIES VERSION ${CMAKE_PROJECT_VERSION})
universe@377 36
universe@377 37 # it is sufficient to specify the headers for one of the targets
universe@377 38 set_target_properties(ucx PROPERTIES PUBLIC_HEADER "${headers}")
universe@377 39
universe@377 40 include(GNUInstallDirs)
universe@377 41 install(TARGETS ucx ucx_static
universe@377 42 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
universe@377 43 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
universe@377 44 PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/ucx)

mercurial