Move ADD_SUBDIRECTORY lines lower, so they pick up INCLUDE_DIRECTORIES. Slightly change type detection to help Windows. Include windows.h when testing for MoveFileExA, and fix typo typo in name. From Patrick Spendrin. --HG-- branch : HEAD