mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
The function currently has 2 purposes: (1) To copy dependent dlls for executables to output binary directory. This ensures that these helper processes can be ran after a build given not all DLLs from vcpkg libs get implicitly copied to the bin folder. (2) Allow fully background and/or GUI processes to use the Windows Subsystem. This prevents unnecessarily launching a console for the process, as we either require no user interaction or the user interaction is all handled in the GUI.
21 lines
679 B
CMake
21 lines
679 B
CMake
set(SOURCES
|
|
Client.cpp
|
|
Session.cpp
|
|
WebContentConnection.cpp
|
|
main.cpp
|
|
)
|
|
|
|
add_executable(WebDriver ${SOURCES})
|
|
|
|
target_include_directories(WebDriver PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../..)
|
|
target_include_directories(WebDriver PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/../..)
|
|
target_include_directories(WebDriver PRIVATE ${LADYBIRD_SOURCE_DIR})
|
|
target_include_directories(WebDriver PRIVATE ${LADYBIRD_SOURCE_DIR}/Services)
|
|
|
|
target_link_libraries(WebDriver PRIVATE LibCore LibFileSystem LibGfx LibIPC LibJS LibMain LibWeb LibWebSocket LibWebView)
|
|
target_link_libraries(WebDriver PRIVATE OpenSSL::Crypto OpenSSL::SSL)
|
|
|
|
if (WIN32)
|
|
lagom_windows_bin(WebDriver)
|
|
endif()
|