https://github.com/mthierman/glow
C++ Library for Windows
https://github.com/mthierman/glow
cmake cpp cpp23 library windows
Last synced: 3 months ago
JSON representation
C++ Library for Windows
- Host: GitHub
- URL: https://github.com/mthierman/glow
- Owner: mthierman
- License: mit
- Created: 2023-08-29T22:29:39.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-14T05:56:20.000Z (over 1 year ago)
- Last Synced: 2025-08-03T21:44:28.366Z (11 months ago)
- Topics: cmake, cpp, cpp23, library, windows
- Language: C++
- Homepage: https://mthierman.pages.dev/glow/
- Size: 7.78 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# C++ Library for Windows
- App & WebView2 classes
- Filesystem functions
- Text handling
- Attachable console
## Requirements:
- C++ 23 Compiler (MSVC/Clang)
- Nuget package manager CLI
- Included with Visual Studio
- https://www.nuget.org/downloads
- winget CLI (part of App Installer) (https://apps.microsoft.com/detail/9NBLGGH4NNS1)
- `winget install Microsoft.NuGet`
## Usage
### Git submodule:
```pwsh
git submodule add https://github.com/mthierman/Glow.git libs/Glow
```
```cmake
add_subdirectory(libs/Glow)
add_executable(
${PROJECT_NAME}
main.cxx
)
target_link_libraries(
${PROJECT_NAME}
PRIVATE
glow::glow
)
```
### CMake FetchContent:
```cmake
include(FetchContent)
FetchContent_Declare(
glow
URL https://github.com/mthierman/Glow/archive/refs/heads/main.zip
)
FetchContent_MakeAvailable(glow)
add_executable(
${PROJECT_NAME}
main.cxx
)
target_link_libraries(
${PROJECT_NAME}
PRIVATE
glow::glow
)
```
### Compiler flags
To use a recommended set of MSVC/Clang flags, optionally link to `glow::flags`
```cmake
target_link_libraries(
${PROJECT_NAME}
PRIVATE
glow::glow
glow::flags
)
```
## Attributions
- [WebView2](https://www.nuget.org/packages/Microsoft.Web.WebView2/) - [license](https://www.nuget.org/packages/Microsoft.Web.WebView2/1.0.2420.47/License)
- [C++/WinRT](https://github.com/microsoft/cppwinrt) - [license](https://github.com/microsoft/cppwinrt?tab=MIT-1-ov-file#readme)
- [Windows Implementation Library](https://github.com/microsoft/wil) - [license](https://github.com/microsoft/wil?tab=MIT-1-ov-file#readme)
- [JSON for Modern C++](https://github.com/nlohmann/json) - [license](https://github.com/nlohmann/json?tab=MIT-1-ov-file#readme)
- [Ada URL Parser](https://github.com/ada-url/ada) - [license](https://github.com/ada-url/ada?tab=MIT-2-ov-file)
- [SQLite](https://www.sqlite.org/) - [license](https://www.sqlite.org/copyright.html)
- [WiX Toolset](https://github.com/wixtoolset/wix?tab=License-1-ov-file#readme)