I have a project P1 which is a single-header library built using CMake.
add_library(P1 INTERFACE)
I have another project P2 which is also a s