1ADD_DEFINITIONS(-DBUILDING_WITH_CMAKE=1) 2ADD_DEFINITIONS(-DHAVE_CONFIG_H=1) 3 4SET(WTF_INCLUDE_DIRECTORIES 5 "${JAVASCRIPTCORE_DIR}" 6 "${JAVASCRIPTCORE_DIR}/wtf" 7 "${JAVASCRIPTCORE_DIR}/wtf/unicode" 8 "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}" 9) 10 11IF (WTF_OS_UNIX) 12 ADD_DEFINITIONS(-DXP_UNIX) 13ENDIF (WTF_OS_UNIX) 14 15IF (MSVC) 16 SET(CODE_GENERATOR_PREPROCESSOR "${CMAKE_CXX_COMPILER} /nologo /EP") 17ELSE () 18 SET(CODE_GENERATOR_PREPROCESSOR "${CMAKE_CXX_COMPILER} -E -P -x c++") 19ENDIF () 20