This commit is contained in:
Zengtudor 2025-05-10 17:22:30 +08:00
parent 92bdc4509f
commit fb77f9e77e
4 changed files with 35 additions and 1 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/build
/.cache

11
CMakeLists.txt Normal file
View File

@ -0,0 +1,11 @@
cmake_minimum_required(VERSION 3.10)
project(eew CXX)
find_package(webview REQUIRED)
file(GLOB_RECURSE SRC_CPP CONFIGURE_DEPENDS ${CMAKE_CURRENT_LIST_DIR}/src/*.cpp)
add_executable(${PROJECT_NAME} ${SRC_CPP})
target_link_libraries(${PROJECT_NAME} PRIVATE webview::core)

View File

@ -1,3 +1,15 @@
# EnvEditorWebview
A project use C++ and webview to edit environment value
A project using C++ and webview to edit environment values
## warning
>Up to now,the project cannot be used
## using libs
> [webview](https://github.com/webview/webview.git)
## How to build
```console
cmake -Bbuild
cmake --build build
```

9
src/main.cpp Normal file
View File

@ -0,0 +1,9 @@
#include <webview/backends.hh>
#include <webview/webview.h>
int main(){
webview::webview wv(false,nullptr);
wv.navigate("https://www.baidu.com");
wv.run();
}