first commit

This commit is contained in:
2026-10-04 19:03:33 -05:00
commit a4412fd406
7 changed files with 212 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
A header only library to get cpu architecture of machine
========================================================
I wanted a way to have an easy way to get the arch of a computer at runtime
## How to use, via cmake FetchContent:
```cmake
include(FetchContent)
FetchContent_Declare(tesses_cpu_arch
GIT_REPOSITORY https://git.tesses.org/tesses50/tesses_cpu_arch.git
GIT_TAG v1.0.0
)
FetchContent_MakeAvailable(tesses_cpu_arch)
target_link_libraries(myapp PRIVATE tesses::cpu_arch)
```
## How to use via cmake find_package
```cmake
find_package(tesses_cpu_arch 1.0 REQUIRED)
target_link_libraries(myapp PRIVATE tesses::cpu_arch)
```
Or just use the file in the include folder, it don't matter
Licensed under UNLICENSE (public domain)