src/CMakeLists.txt

changeset 753
24dc84788dee
parent 752
aaad6674a1a3
child 754
4bc7d966c9db
     1.1 --- a/src/CMakeLists.txt	Sun Sep 03 09:10:16 2023 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,51 +0,0 @@
     1.4 -set(sources
     1.5 -        utils.c
     1.6 -        allocator.c
     1.7 -        string.c
     1.8 -        list.c
     1.9 -        array_list.c
    1.10 -        linked_list.c
    1.11 -        buffer.c
    1.12 -        map.c
    1.13 -        hash_key.c
    1.14 -        hash_map.c
    1.15 -        mempool.c
    1.16 -        printf.c
    1.17 -        compare.c
    1.18 -)
    1.19 -set(headers
    1.20 -        cx/common.h
    1.21 -        cx/utils.h
    1.22 -        cx/string.h
    1.23 -        cx/allocator.h
    1.24 -        cx/iterator.h
    1.25 -        cx/collection.h
    1.26 -        cx/list.h
    1.27 -        cx/array_list.h
    1.28 -        cx/linked_list.h
    1.29 -        cx/buffer.h
    1.30 -        cx/map.h
    1.31 -        cx/hash_key.h
    1.32 -        cx/hash_map.h
    1.33 -        cx/mempool.h
    1.34 -        cx/printf.h
    1.35 -        cx/compare.h
    1.36 -        )
    1.37 -
    1.38 -add_library(ucx SHARED ${sources})
    1.39 -add_library(ucx_static STATIC ${sources})
    1.40 -
    1.41 -target_include_directories(ucx PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
    1.42 -target_include_directories(ucx_static PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
    1.43 -
    1.44 -set_target_properties(ucx PROPERTIES SOVERSION 4 VERSION 4.0.0)
    1.45 -set_target_properties(ucx_static PROPERTIES VERSION ${CMAKE_PROJECT_VERSION})
    1.46 -
    1.47 -# it is sufficient to specify the headers for one of the targets
    1.48 -set_target_properties(ucx PROPERTIES PUBLIC_HEADER "${headers}")
    1.49 -
    1.50 -include(GNUInstallDirs)
    1.51 -install(TARGETS ucx ucx_static
    1.52 -        LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    1.53 -        ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
    1.54 -        PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/cx)
    1.55 \ No newline at end of file

mercurial