src/CMakeLists.txt

Sun, 26 Sep 2021 13:34:30 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 26 Sep 2021 13:34:30 +0200
changeset 424
2d6f6cb24132
parent 398
8d506ed6c1c0
child 469
0458bff0b1cd
permissions
-rw-r--r--

add some low level tree function declarations

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

mercurial