2011-06-10 Lucas De Marchi <lucas.demarchi@profusion.mobi>
[WebKit-https.git] / Source / cmake / OptionsCommon.cmake
1 ADD_DEFINITIONS(-DBUILDING_WITH_CMAKE=1)
2 ADD_DEFINITIONS(-DHAVE_CONFIG_H=1)
3
4 IF (WTF_OS_UNIX)
5     ADD_DEFINITIONS(-DXP_UNIX)
6 ENDIF (WTF_OS_UNIX)
7
8 IF (MSVC)
9     SET(CODE_GENERATOR_PREPROCESSOR "${CMAKE_CXX_COMPILER} /nologo /EP")
10 ELSE ()
11     SET(CODE_GENERATOR_PREPROCESSOR "${CMAKE_CXX_COMPILER} -E -P -x c++")
12 ENDIF ()
13
14 IF (ENABLE_WEBGL)
15     FIND_PACKAGE(OpenGL REQUIRED)
16 ENDIF ()