src/CMakeLists.txt

Sun, 21 May 2023 16:22:09 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 21 May 2023 16:22:09 +0200
changeset 710
2dd409ed056f
parent 706
8c6edaccaef1
child 718
cf2f209b9da2
permissions
-rw-r--r--

fix const-ness of non-mutating iterator creation for maps

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

mercurial