src/CMakeLists.txt

Fri, 08 Oct 2021 19:47:31 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 08 Oct 2021 19:47:31 +0200
changeset 473
1bd4b8c28722
parent 470
e5a4de4f1e03
child 483
929016224c3c
permissions
-rw-r--r--

add cx_linked_list_{prev, remove, reverse}

changes assertions for some low level methods (loc_next is now always mandatory)

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

mercurial