HOW DO I...Automatically incorporate a source-code library

  • Thread starter Thread starter Javier Estrada
  • Start date Start date
J

Javier Estrada

I have a source-code library, that provides header and source files (similar
to MFC).

What would be a good way to automatically incorporate it into other
projects?

The way I do it today is by appending it to the list of include directories
and adding each source file to the project, but this is time consuming--and
error prone.

Regards,

Javier
 
Javier,

One option would be to build your code as a static library (.lib file). Then
you can put the appropriate header and library files to the dedicated
folders and these folders to Visual Studio settings. After you do this, the
only things you will need to do in the projects that use this library are:
(1) add #include directives for the header files and (2) add .lib files to
the project. Alternatively (to the static library), you can create a shared
DLL, but you will need to deploy this DLL with your applications, which may
be a hassle.

Alek
 
Back
Top