It should be sufficient for the IDE to compile a package (it then is aware of it) without installing it for it to be useable by another package that has it as a dependency.
Unless, perhaps, the requiring package is poorly designed, and somehow forces a requirement that all dependent packages must be IDE-installed (design-time) packages, even if some of them are not design-time packages.
I may be wrong about this. I have never encountered it myself.
Anyway, good practice is always for package builders to make a clear distinction between runtime packages, design-time packages, and run-and-design-time packages.