Fri, 20 Dec 2019 14:29:41 +0100
adds proper cmake build targets
universe@375 | 1 | set(sources |
universe@375 | 2 | allocator.c |
universe@375 | 3 | array.c |
universe@375 | 4 | avl.c |
universe@375 | 5 | buffer.c |
universe@375 | 6 | list.c |
universe@375 | 7 | logging.c |
universe@375 | 8 | map.c |
universe@375 | 9 | mempool.c |
universe@375 | 10 | properties.c |
universe@375 | 11 | stack.c |
universe@375 | 12 | string.c |
universe@375 | 13 | test.c |
universe@375 | 14 | ucx.c |
universe@375 | 15 | utils.c |
universe@375 | 16 | ) |
universe@375 | 17 | |
universe@375 | 18 | add_library(ucx SHARED ${sources}) |
universe@375 | 19 | add_library(ucx_static STATIC ${sources}) |
universe@375 | 20 | |
universe@375 | 21 | target_include_directories(ucx PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) |
universe@375 | 22 | target_include_directories(ucx_static PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) |
universe@375 | 23 | |
universe@375 | 24 | set_target_properties(ucx PROPERTIES SOVERSION 3 VERSION 3.1.0) |
universe@375 | 25 | set_target_properties(ucx_static PROPERTIES VERSION ${CMAKE_PROJECT_VERSION}) |