from the documentation
target_link_libraries: Link a target to given libraries.
target_link_libraries(
<target>
[item1 [item2 [...]]] [[debug|optimized|general]<item>
] ...)Specify libraries or flags to use when linking a given target. The named must have been created in the current directory by a command such as add_executable or add_library. The remaining arguments specify library names or flags.
try instead
target_link_libraries(PedestrianDetection ${OpenCV_LIBS})