<< NFS and friends on RPI with openmediavault | Home | docker: get rid of images and containers >>

CMake: glob_recurse with symbolic linked folders

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...

Export this post as PDF document  Export this post to PDF document

Social Bookmarks :  Add this post to Slashdot    Add this post to Digg    Add this post to Reddit    Add this post to Delicious    Add this post to Stumble it    Add this post to Google    Add this post to Technorati    Add this post to Bloglines    Add this post to Facebook    Add this post to Furl    Add this post to Windows Live    Add this post to Yahoo!
Home