Resurrect CMake build on Windows.
[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     "${DERIVED_SOURCES_WEBKIT_DIR}/Interfaces"
7     "${WTF_DIR}"
8     "${CMAKE_SOURCE_DIR}"
9     "${CMAKE_SOURCE_DIR}/Source"
10 )
11
12 set(WinLauncher_SOURCES
13     AccessibilityDelegate.cpp
14     DOMDefaultImpl.cpp
15     PageLoadTestClient.cpp
16     PrintWebUIDelegate.cpp
17     ResourceLoadDelegate.cpp
18     WebDownloadDelegate.cpp
19     WinLauncher.cpp
20     WinLauncherWebHost.cpp
21     WinMain.cpp
22     stdafx.cpp
23
24     WinLauncher.vcxproj/WinLauncherLib.rc
25 )
26
27 set(WinLauncher_LIBRARIES
28     CFLite
29     DbgHelp
30     WTF
31     WebKit
32     WebKitGUID
33     comctl32
34     comsupp
35     comsuppw
36     shlwapi
37 )
38
39 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ENTRY:wWinMainCRTStartup")
40
41 add_definitions(-D_UNICODE -DWIN_CAIRO)
42 include_directories(${WinLauncher_INCLUDE_DIRECTORIES})
43 add_library(WinLauncher SHARED ${WinLauncher_SOURCES})
44 target_link_libraries(WinLauncher ${WinLauncher_LIBRARIES})
45 set_target_properties(WinLauncher PROPERTIES FOLDER "Tools")
46
47 add_executable(WinLauncherLauncher WIN32 ${TOOLS_DIR}/win/DLLLauncher/DLLLauncherMain.cpp WinLauncher.vcxproj/WinLauncher.rc)
48 target_link_libraries(WinLauncherLauncher shlwapi)
49 set_target_properties(WinLauncherLauncher PROPERTIES FOLDER "Tools")
50 set_target_properties(WinLauncherLauncher PROPERTIES OUTPUT_NAME "WinLauncher")