diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e050ba0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/build +/.cache \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..75c7c8a --- /dev/null +++ b/CMakeLists.txt @@ -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) \ No newline at end of file diff --git a/README.md b/README.md index 3cf95ce..8f445f5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ # EnvEditorWebview -A project use C++ and webview to edit environment value \ No newline at end of file +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 +``` \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..610b75c --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,9 @@ +#include +#include + + +int main(){ + webview::webview wv(false,nullptr); + wv.navigate("https://www.baidu.com"); + wv.run(); +} \ No newline at end of file