cmake: switch from using deprecated linklibraries to target_linklibraries

the total information duplication actually decreases and it
facilitates reusing CMake instructions from outer projects.