I have an OBJECT library objlib which is linked into the main target maintarget. The objlib has a dependent library, say,
OBJECT
objlib
maintarget
As of CMake 3.12, you can now use target_link_libraries on object libraries to get usage requirements.
target_link_libraries
Using 3.12, this approach that you mentioned should work:
add_library(objlib OBJECT ...) target_link_libraries(objlib ZLIB::ZLIB)