I have a c++ library (https://github.com/terrychenism/caffe-windows-cudnn) including different bunchs of c++ headers and cpp files. It also includes 3rd party libraries as well (their .lib, .h, .dll files). I wrote a main function inside this library. My aim is to call the work-flow that is inside the main function in another project. (I know what main is, but I need to make it a custom function then call it in the external project).
For this problem, If possible, I need to compile all the library as a single file with my custom function (like .JAR in Java) and include it in the other project to call that function. How should I go for it? Thanks.