mirror of
https://gitcode.com/Zengtudor/EnvEditorWebview.git
synced 2025-06-02 03:47:24 +00:00
update
This commit is contained in:
parent
92bdc4509f
commit
fb77f9e77e
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/build
|
||||
/.cache
|
11
CMakeLists.txt
Normal file
11
CMakeLists.txt
Normal 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)
|
14
README.md
14
README.md
@ -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
9
src/main.cpp
Normal 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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user