diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3d8b4d0bde82464a6c729a4e3cf231fffb4b769e..f76f312ee6b09ee9007d0d20f03f0212cc858a1d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -159,6 +159,8 @@ add_subdirectory(src)
 add_service_files( FILES RunPythonFile.srv )
 generate_messages( DEPENDENCIES std_msgs )
 catkin_package(CATKIN_DEPENDS message_runtime LIBRARIES ros_bridge ros_interpreter)
+# Add libraries in pc file generated by cmake submodule
+PKG_CONFIG_APPEND_LIBS(ros_bridge ros_interpreter)
 
 #install ros executables
 install(PROGRAMS