Commit 1b980d0e authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Add dependencies to belle-sip.pc for static linking.

parent c35c2e8b
......@@ -105,6 +105,15 @@ set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix ${prefix}/bin)
set(libdir ${prefix}/lib)
set(includedir ${prefix}/include)
get_filename_component(antlr3c_library_path "${ANTLR3C_LIBRARIES}" PATH)
set(libs_private "-L${antlr3c_library_path} -lantlr3c")
set(requires_private "${requires_private} cunit")
get_filename_component(polarssl_library_path "${POLARSSL_LIBRARIES}" PATH)
set(libs_private "${libs_private} ${polarssl_library_path} -lpolarssl")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/ ${CMAKE_CURRENT_BINARY_DIR}/belle-sip.pc)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/belle-sip.pc DESTINATION lib/pkgconfig)
......@@ -5,7 +5,8 @@ includedir=@includedir@
Name: belle-sip
Description: A c based implementation of the SIP (RFC 3261) telephony protocol
Requires.private: @TLS_PC@
Requires.private: @requires_private@ @TLS_PC@
Version: @VERSION@
Libs: -L@libdir@ -lbellesip
Cflags: -I@includedir@
\ No newline at end of file
Libs.private: @libs_private@
Cflags: -I@includedir@
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment