in CMakeLists.txt: INCLUDE_DIRECTORIES(${EXPAT_INCLUDE_DIRS}) should be: INCLUDE_DIRECTORIES(${EXPAT_INCLUDE_DIR})