I'm trying to make a generic property sheet for our C++ projects in Visual Studio. For example, to point to the boost library (which is downloaded from a server into the git checkout directory by a script).
Lets say I have a folder structure like this:
- checkout_dir
- libraries (filled by script)
- boost
- main_program
- main_program.sln
- main_program_project_1
- main_program_project_1.vcxproj
- main_program_project_2
- main_program_project_2.vcxproj
- tests
- test_suite_1
- test_suite_1.sln
- test_suite_1_project
- test_suite_1_project.vcxproj
- test_suite_2
- test_suite_2.sln
- test_suite_2_project
- test_suite_2_project.vcxproj
- test_group
- test_suite_3
- test_suite_3.sln
- test_suite_3_project
- test_suite_3_project.vcxproj
- test_suite_4
- test_suit_4.sln
- test_suite_4_project
- test_suite_4_project.vcxproj
- test_suite_3
- test_suite_1
- libraries (filled by script)
I would like to make a property sheet to point all of the projects (main and test) to the boost library. But the problem is that the boost library is not at the same relative path for each project because they are at different directory levels.
Is there a way to avoid making a property sheet for each directory level?
Thanks