src/CMakeLists.txt

changeset 375
460c0258bb5b
child 377
2099a3aff61e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/CMakeLists.txt	Fri Dec 20 14:29:41 2019 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +set(sources
     1.5 +        allocator.c
     1.6 +        array.c
     1.7 +        avl.c
     1.8 +        buffer.c
     1.9 +        list.c
    1.10 +        logging.c
    1.11 +        map.c
    1.12 +        mempool.c
    1.13 +        properties.c
    1.14 +        stack.c
    1.15 +        string.c
    1.16 +        test.c
    1.17 +        ucx.c
    1.18 +        utils.c
    1.19 +)
    1.20 +
    1.21 +add_library(ucx SHARED ${sources})
    1.22 +add_library(ucx_static STATIC ${sources})
    1.23 +
    1.24 +target_include_directories(ucx PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
    1.25 +target_include_directories(ucx_static PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
    1.26 +
    1.27 +set_target_properties(ucx PROPERTIES SOVERSION 3 VERSION 3.1.0)
    1.28 +set_target_properties(ucx_static PROPERTIES VERSION ${CMAKE_PROJECT_VERSION})

mercurial