cmake: fix up target dependencies

this fixes failed builds done in parallel when either fftw3 or Eigen3
are not available
Merge pull request #112 from torbjoernk/feature/fix-target-dependencies

fix up CMake target dependencies