If using CMake's file glob_recurse for catching source-file and you want this to also follow symbolic-links, just add the 'FOLLOW_SYMLINKS'-keyword:

Like this:

  
file( GLOB_RECURSE SOURCE_FILES FOLLOW_SYMLINKS src/*.cpp src/*.h )
  

Have look here: cmake file-docs

And a bit related. In linux to copy a folder to a new location with symlinks solved:

cp -r -L [from] [to]

Read more...