Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ set(SOURCE_FILES
src/civetweb/civetweb.c
src/webui.c
)

if (WIN32)
set(SOURCE_FILES ${SOURCE_FILES}
src/webview/win32_wv2.cpp
)
endif()

if (APPLE)
# enable macos webview
enable_language(OBJC)
Expand All @@ -63,6 +70,14 @@ endif()

if (WIN32)
target_link_libraries(webui PRIVATE ws2_32 user32 shell32 ole32)

if ("${CMAKE_CXX_COMPILER}" STREQUAL "GNU")
message("Adding stdc++ as library")
target_link_libraries(webui stdc++)
else()
message("Not a windows GNU target")
endif()

elseif (APPLE)
# link required frameworks
find_library(COCOA_FRAMEWORK Cocoa REQUIRED)
Expand Down Expand Up @@ -118,4 +133,4 @@ if (WEBUI_BUILD_EXAMPLES)
if (MSVC)
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT call_js_from_cpp)
endif()
endif()
endif()
Loading