Fourth, tips on how to use a software library - to avoid duplication profile table

I. Introduction

        We need to use various libraries, such as Opencv, Itk, vtk, when different libraries used in the VS configuration properties is a very troublesome problem, and is designed to cross using a different library, so here is a little skill.

  That we configure each library in the form of a property sheet (this I have actually introduced in itk installed inside), you need to use what function library, we just need to add the corresponding attribute table can be.

Second, in order to use QT project as an example vtk

       After we set up a project, select the project configuration to release x64 version

       1, manager select Properties

        

 

          2, right add - new property sheet

         

 

            3, then define the location and name attribute table

            

 

            4, the right choice, properties in the property sheet inside VTK

            

 

           5, the interface appears as follows:

           

 

          6, select VC ++

          inlcude then configure the directory containing the file to a folder of the installation path VTK

    

 

            Configuration repository directory lib file VTK installation path folders.

           

 

           7, and then configure C ++, conventional

            

 

          8, the configuration linker, additional dependencies 

           

 

            Enter Additional Dependencies inside all installation folder \ lib file names of all lib \ inside

           Then save.

            9, other projects use

            The next time we need to use this property directly copied to the corresponding engineering inside, then choose Release x64 option, then right-click Add - "Existing Property Sheet

            

 

                 This will avoid a second configuration.

               Other configuration library is similar.

              When we need to use this library, we just need to add the corresponding attribute table like through the property manager.

Three, QT configuration attribute table

            Property sheet similar to the process, only to enumerate specific parameters:

           

 

             

 

             If you have questions please point it out.

           

 

         

        

        

Guess you like

Origin www.cnblogs.com/fantianliang/p/12356252.html