src/CMakeLists.txt

Wed, 06 Oct 2021 14:10:19 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 06 Oct 2021 14:10:19 +0200
changeset 469
0458bff0b1cd
parent 424
2d6f6cb24132
child 470
e5a4de4f1e03
permissions
-rw-r--r--

add high level list sort and inlines method invocation functions

universe@375 1 set(sources
universe@391 2 allocator.c
universe@398 3 linked_list.c
olaf@424 4 tree.c
universe@375 5 )
universe@377 6 set(headers
universe@391 7 cx/allocator.h
universe@390 8 cx/list.h
universe@398 9 cx/linked_list.h
universe@377 10 )
universe@375 11
universe@375 12 add_library(ucx SHARED ${sources})
universe@375 13 add_library(ucx_static STATIC ${sources})
universe@375 14
universe@375 15 target_include_directories(ucx PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
universe@375 16 target_include_directories(ucx_static PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
universe@375 17
universe@390 18 set_target_properties(ucx PROPERTIES SOVERSION 4 VERSION 4.0.0)
universe@375 19 set_target_properties(ucx_static PROPERTIES VERSION ${CMAKE_PROJECT_VERSION})
universe@377 20
universe@377 21 # it is sufficient to specify the headers for one of the targets
universe@377 22 set_target_properties(ucx PROPERTIES PUBLIC_HEADER "${headers}")
universe@377 23
universe@377 24 include(GNUInstallDirs)
universe@377 25 install(TARGETS ucx ucx_static
universe@377 26 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
universe@377 27 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
universe@377 28 PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/ucx)

mercurial