powturbo / Turbo-Base64

Turbo Base64 - Fastest Base64 SIMD:SSE/AVX2/AVX512/Neon/Altivec - Faster than memcpy!
GNU General Public License v3.0
264 stars 40 forks source link

Support build with cmake. #14

Closed cyfdecyf closed 1 year ago

cyfdecyf commented 2 years ago

Found there's a CMakeLists.txt created in https://github.com/microsoft/vcpkg/pull/10317, which is based on ClickHouse's version.

This PR tries to follow what's in the current makefile. It adds options to enable NCHECK, FULLCHECK, etc.

It contains many comments for install related code because I'm trying to figure out how to do this right. I kept those comments because they maybe useful to people not familiar to CMake (also for myself in the future).

Note I have only tested this on Linux x86_64 as I don't have access to ARM and PowerPC machines.