[CMake] Apple builds should use ICU_INCLUDE_DIRS
[WebKit-https.git] / Tools / TestWebKitAPI / PlatformMac.cmake
1 set(TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
2 set(TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY_WTF "${TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY}")
3
4 include_directories(
5     "${FORWARDING_HEADERS_DIR}"
6 )
7
8 set(test_main_SOURCES
9     ${TESTWEBKITAPI_DIR}/cocoa/UtilitiesCocoa.mm
10     ${TESTWEBKITAPI_DIR}/mac/mainMac.mm
11 )
12
13 find_library(CARBON_LIBRARY Carbon)
14 find_library(COCOA_LIBRARY Cocoa)
15 find_library(COREFOUNDATION_LIBRARY CoreFoundation)
16 link_directories(${CMAKE_SOURCE_DIR}/WebKitLibraries)
17 list(APPEND test_wtf_LIBRARIES
18     ${CARBON_LIBRARY}
19     ${COCOA_LIBRARY}
20     ${COREFOUNDATION_LIBRARY}
21     ${ICU_LIBRARIES}
22 )
23
24 list(APPEND TestWebKitAPI_LIBRARIES
25     ${CARBON_LIBRARY}
26 )
27
28 set(bundle_harness_SOURCES
29     ${TESTWEBKITAPI_DIR}/cocoa/PlatformUtilitiesCocoa.mm
30     ${TESTWEBKITAPI_DIR}/cocoa/UtilitiesCocoa.mm
31     ${TESTWEBKITAPI_DIR}/mac/InjectedBundleControllerMac.mm
32     ${TESTWEBKITAPI_DIR}/mac/PlatformUtilitiesMac.mm
33     ${TESTWEBKITAPI_DIR}/mac/PlatformWebViewMac.mm
34     ${TESTWEBKITAPI_DIR}/mac/SyntheticBackingScaleFactorWindow.m
35     ${TESTWEBKITAPI_DIR}/mac/TestBrowsingContextLoadDelegate.mm
36 )