Reputation: 701
I often make C++ Google Test projects inside Visual Studio that test another project via Project References.
For the test project to find the tested project's methods, I need to configure something in the "Public Project Content" of the tested project.
By default nothing is public. With every new project I need to edit the properties. So I was wondering, is there a way to make "Yes" the default for "All Header Files are Public", for instance ?
Thanks.
Upvotes: 0
Views: 234
Reputation: 10936
Use a custom Property Sheet that can be added to a project.
View > Property Manager > Add new Property Sheet
(the wrench/spanner with the star)."Google.Test.Default.props"
the quotes are required)The list is ordered where higher entries supersede lower entries and the top-most "project" properties contains all changes and can be modified on a per-project basis.
Then, for every subsequent project:
View > Property Manager > Add existing property sheet
Google.Test.Default.props
file.If you've changed any settings in the top-most project settings you'll have to go through them and change the relevant settings to <Inherit from parent or project defaults>
to have the project use the new property sheet.
Upvotes: 1