blob: 27a5e828e18457cb93a4125119f3622bceac79a9 [file] [log] [blame]
ADD_DEFINITIONS(-DBUILDING_WITH_CMAKE=1)
ADD_DEFINITIONS(-DHAVE_CONFIG_H=1)
IF (WTF_OS_UNIX)
ADD_DEFINITIONS(-DXP_UNIX)
ENDIF (WTF_OS_UNIX)
IF (MSVC)
SET(CODE_GENERATOR_PREPROCESSOR "${CMAKE_CXX_COMPILER} /nologo /EP")
ELSE ()
SET(CODE_GENERATOR_PREPROCESSOR "${CMAKE_CXX_COMPILER} -E -P -x c++")
ENDIF ()
IF (ENABLE_WEBGL)
FIND_PACKAGE(OpenGL REQUIRED)
ENDIF ()