4 # search packages used by KDE
5 find_package(KDE4 REQUIRED)
9 find_package(LibXml2 REQUIRED)
10 find_package(LibXslt REQUIRED)
11 find_package(JPEG REQUIRED)
12 find_package(PNG REQUIRED)
14 find_program(BISON_EXECUTABLE bison)
15 find_program(GPERF_EXECUTABLE gperf)
17 # quick check the libicu is available
18 find_path(LIBICU_INCLUDE_DIR unicode/umachine.h )
20 if (NOT BISON_EXECUTABLE)
21 message(FATAL_ERROR "Could not find bison")
22 endif (NOT BISON_EXECUTABLE)
24 if (NOT GPERF_EXECUTABLE)
25 message(FATAL_ERROR "Could not find gperf")
26 endif (NOT GPERF_EXECUTABLE)
28 if (NOT LIBICU_INCLUDE_DIR)
29 message(FATAL_ERROR "libicu not found, cannot create unity without it")
30 endif (NOT LIBICU_INCLUDE_DIR)
32 add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -DQT3_SUPPORT -DHAVE_CONFIG_H=1)
33 link_directories (${KDE4_LIB_DIR})
34 include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ${LIBICU_INCLUDE_DIR})
36 add_definitions( -fpermissive )
37 add_definitions( -DUSE_SYSTEM_MALLOC=1 )
39 # Once we use KDE stuff, adjust wtf/Platform.h for BUILDING_KDE__ ...
40 add_definitions( -DBUILDING_QT__=1 )
42 add_subdirectory( JavaScriptCore )
43 add_subdirectory( WebCore )
44 add_subdirectory( WebKitTools/QtLauncher )
45 add_subdirectory( WebKitTools/DumpRenderTree/DumpRenderTree.qtproj )
47 include_directories ( BEFORE ${CMAKE_CURRENT_BINARY_DIR} )