src/CMakeLists.txt

Sat, 05 Nov 2022 17:50:04 +0100

author
Mike Becker <universe@uap-core.de>
date
Sat, 05 Nov 2022 17:50:04 +0100
changeset 601
95ba6014041b
parent 599
6536a9a75b71
child 606
314e9288af2f
permissions
-rw-r--r--

add compare functions

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

mercurial