chengzhengxin / sdm

Supervised Descent Method Apply to Face Alignment, and Head Pose Estimation with Linear Regression. It is cross-platfrom, easily compile in windows, ubuntu, even in Android & iOS.
448 stars 197 forks source link

Modified CMake to support OSX #26

Closed orgicus closed 7 years ago

orgicus commented 7 years ago

Hi,

I've just bumped into this project form a paper reference and this looks awesome!

I tried to compile on OSX and unfortunately it didn't work out of the box, but luckily there were just a couple of tweaks to be done:

  1. added -std=c++11 flag
  2. used dynamic OpenCV libs instead of the static ones(because of a clang compiler quirk)

This pull request contains the CMake tweaks that will have the project compile on OSX as well.

Thank you, George

chengzhengxin commented 7 years ago

Thank for your modification