title: How to create a CLI wrapper for a C++ library?
body: <p>I have the header files(<strong>*.hpp</strong>) and source files(<strong>*.cpp</strong>) to a library. I built the library from source using CMake, then used Visual Studio to build it, which created a <strong>.lib</strong> file. To create a CLI wrapper, I need a header file that enumerates all the methods in the library in it, and a source file that creates proxy functions and defines their behavior.</p>
  
  <p>The tutorials on the internet describe manually creating proxy functions and defining the headers, but the library has several hundred functions in source and header files, so I am looking for an easier way to create a CLI wrapper.</p>
  
  <p>The tutorials I followed were:</p>
  
  <ol>
  <li><a href="https://drthitirat.wordpress.com/2013/06/03/use-c-codes-in-a-c-project-wrapping-native-c-with-a-managed-clr-wrapper/" rel="nofollow noreferrer">https://drthitirat.wordpress.com/2013/06/03/use-c-codes-in-a-c-project-wrapping-native-c-with-a-managed-clr-wrapper/</a></li>
  <li><a href="https://dominoc925.blogspot.com/2016/08/use-cmake-to-help-build-and-use-windows.html" rel="nofollow noreferrer">https://dominoc925.blogspot.com/2016/08/use-cmake-to-help-build-and-use-windows.html</a></li>
  </ol>
  
  <p>I wish to use these C++ functions in C#.</p>