Did you install the -devel packages?
Redhat/Fedora splits software into both runtime (which is what you probably have installed) and developer (headers, static libs) packages. It names these developer packages PACKAGENAME-devel.
Check your install, see if you can install the necessary opencv-devel package(s).