src/CMakeLists.txt

Fri, 20 Dec 2019 14:29:41 +0100

author
Mike Becker <universe@uap-core.de>
date
Fri, 20 Dec 2019 14:29:41 +0100
changeset 375
460c0258bb5b
child 377
2099a3aff61e
permissions
-rw-r--r--

adds proper cmake build targets

     1 set(sources
     2         allocator.c
     3         array.c
     4         avl.c
     5         buffer.c
     6         list.c
     7         logging.c
     8         map.c
     9         mempool.c
    10         properties.c
    11         stack.c
    12         string.c
    13         test.c
    14         ucx.c
    15         utils.c
    16 )
    18 add_library(ucx SHARED ${sources})
    19 add_library(ucx_static STATIC ${sources})
    21 target_include_directories(ucx PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
    22 target_include_directories(ucx_static PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
    24 set_target_properties(ucx PROPERTIES SOVERSION 3 VERSION 3.1.0)
    25 set_target_properties(ucx_static PROPERTIES VERSION ${CMAKE_PROJECT_VERSION})

mercurial