--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -236,3 +236,11 @@
 if (ENABLE_PACKAGE_SOURCE)
 	add_subdirectory(build)
 endif()
+
+
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lime.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lime.pc)
+set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/mediastreamer.pc PROPERTIES GENERATED ON)
+install(FILES
+	"${CMAKE_CURRENT_BINARY_DIR}/lime.pc"
+	DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
+)
