I am using static linking to build my libraries for a qt app. I am using boost in one of my C++ internal libraries. I am using .pro files for my internal library where I have defined boost libs location & boost headers files location as my library depends on boost. All of this builds fine & great up till now.
My qt app is linking to my internal static library which in turn uses boost. The problem is that when I try to include a header from my internal library which uses boost, this fails to build unless 'I include boost in my app's .pro file'. Including boost dependency in app's pro file makes the build work all fine but I don't want to do this as the app should worry about a library's dependencies whether boost or whatever it is. Is there some way to avoid my app to worry about boost when it is not using it directly ?
I read the following link which looks like a similar problem but the answer doesn't work for me How to link Boost in a dependant static library
Any expertise shared is appreciated. Thanks in advance.