0f900f37e504569c3cd442fe2bdf6b62d2d8e8ca
[WebKit-https.git] / Tools / WinLauncher / CMakeLists.txt
1 set(WinLauncher_INCLUDE_DIRECTORIES
2     WinLauncher.vcxproj
3     "${DERIVED_SOURCES_DIR}/ForwardingHeaders"
4     "${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebKit"
5     "${DERIVED_SOURCES_DIR}"
6     "${WTF_DIR}"
7     "${CMAKE_SOURCE_DIR}"
8     "${CMAKE_SOURCE_DIR}/Source"
9 )
10
11 set(WinLauncher_SOURCES
12     AccessibilityDelegate.cpp
13     DOMDefaultImpl.cpp
14     PageLoadTestClient.cpp
15     PrintWebUIDelegate.cpp
16     ResourceLoadDelegate.cpp
17     WinLauncher.cpp
18     WinLauncherWebHost.cpp
19     WinMain.cpp
20     stdafx.cpp
21
22     WinLauncher.vcxproj/WinLauncherLib.rc
23 )
24
25 set(WinLauncher_LIBRARIES
26     CFLite
27     DbgHelp
28     WTF
29     WebKit
30     WebKitGUID
31     comctl32
32     comsupp
33     comsuppw
34     shlwapi
35 )
36
37 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ENTRY:wWinMainCRTStartup")
38
39 add_definitions(-D_UNICODE -DWIN_CAIRO)
40 include_directories(${WinLauncher_INCLUDE_DIRECTORIES})
41 add_library(WinLauncher SHARED ${WinLauncher_SOURCES})
42 target_link_libraries(WinLauncher ${WinLauncher_LIBRARIES})
43 set_target_properties(WinLauncher PROPERTIES FOLDER "Tools")
44
45 add_executable(WinLauncherLauncher WIN32 ${TOOLS_DIR}/win/DLLLauncher/DLLLauncherMain.cpp WinLauncher.vcxproj/WinLauncher.rc)
46 target_link_libraries(WinLauncherLauncher shlwapi)
47 set_target_properties(WinLauncherLauncher PROPERTIES FOLDER "Tools")
48 set_target_properties(WinLauncherLauncher PROPERTIES OUTPUT_NAME "WinLauncher")