Files
tesses_cpu_arch/README.md
T
2026-10-04 19:03:33 -05:00

754 B

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:

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

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)