1 2 3
include(CheckIncludeFile) CHECK_INCLUDE_FILE(unistd.h HAS_UNISTD_H) CHECK_INCLUDE_FILE(string.h HAS_STRING_H)