Thanks for pointing that out. We have made it even easier to use ArrayFire with modern CMake in our latest release! Check out our latest blog post for an example. https://sandbox.arrayfire.com/arrayfire-v3-6-release

You can also look at our examples on how to properly use the ArrayFire as part of a CMake project.