1 #include(GenerateExportHeader)
2 #generate_export_header(meshlink BASE_NAME meshlink)
4 add_library(meshlink SHARED
7 chacha-poly1305/chacha-poly1305.c
8 chacha-poly1305/chacha.c
9 chacha-poly1305/poly1305.c
22 ed25519/key_exchange.c
60 set(MESHLINK_PUBLIC_HEADERS
65 target_compile_features(meshlink PUBLIC c_std_11)
66 target_link_libraries(meshlink PRIVATE Threads::Threads)
67 set_target_properties(meshlink PROPERTIES PUBLIC_HEADER "${MESHLINK_PUBLIC_HEADERS}")
68 set_property(TARGET meshlink PROPERTY C_VISIBILITY_PRESET hidden)
69 set_property(TARGET meshlink PROPERTY C_STANDARD 11)
71 include(GNUInstallDirs)
72 install(TARGETS meshlink
74 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
75 PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}