src/CMakeLists.txt

Fri, 05 May 2023 19:07:56 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 05 May 2023 19:07:56 +0200
changeset 702
3390b58ad15a
parent 677
b09aae58bba4
child 706
8c6edaccaef1
permissions
-rw-r--r--

fix cx_linked_list_sort() not working for empty lists

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

mercurial