Compile and link with CMake on Mac
[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     ${DERIVED_SOURCES_DIR}/ForwardingHeaders
6     "${WTF_DIR}/icu"
7 )
8
9 set(test_main_SOURCES
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     libicucore.dylib
22 )
23
24 set(bundle_harness_SOURCES
25     ${TESTWEBKITAPI_DIR}/cocoa/PlatformUtilitiesCocoa.mm
26     ${TESTWEBKITAPI_DIR}/mac/InjectedBundleControllerMac.mm
27     ${TESTWEBKITAPI_DIR}/mac/InstanceMethodSwizzler.mm
28     ${TESTWEBKITAPI_DIR}/mac/PlatformUtilitiesMac.mm
29     ${TESTWEBKITAPI_DIR}/mac/PlatformWebViewMac.mm
30     ${TESTWEBKITAPI_DIR}/mac/SyntheticBackingScaleFactorWindow.m
31     ${TESTWEBKITAPI_DIR}/mac/TestBrowsingContextLoadDelegate.mm
32 )