--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -218,3 +218,13 @@
 if (ENABLE_PACKAGE_SOURCE)
 	add_subdirectory(build)
 endif()
+
+
+if(ENABLE_LIME)
+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
+)
+endif()
