add include_directories(${PROJECT_BINARY_DIR}) to get config.h included