2010-05-22 Leandro Pereira <leandro@profusion.mobi>
[WebKit-https.git] / cmake / OptionsCommon.cmake
1 ADD_DEFINITIONS(-DBUILDING_WITH_CMAKE=1)
2 ADD_DEFINITIONS(-DHAVE_CONFIG_H=1)
3
4 IF (CMAKE_COMPILER_IS_GNUCC)
5     SET(CMAKE_CXX_FLAGS "-fPIC ${CMAKE_CXX_FLAGS}")
6     SET(CMAKE_C_FLAGS "-fPIC ${CMAKE_C_FLAGS}")
7 ENDIF ()
8
9 SET(WTF_INCLUDE_DIRECTORIES
10     "${JAVASCRIPTCORE_DIR}"
11     "${JAVASCRIPTCORE_DIR}/wtf"
12     "${JAVASCRIPTCORE_DIR}/wtf/unicode"
13     "${DERIVED_SOURCES_DIR}"
14 )
15
16 IF (WTF_OS_UNIX)
17     ADD_DEFINITIONS(-DXP_UNIX)
18 ENDIF (WTF_OS_UNIX)