CMake include for C++ Azure -
this how integrate azure-storage c++ toolkit in cmake.
i try build tool in our application connects azure blob storage, lists files/containers, reads data, etc., work on linux (ubuntu 17.04). have built both cpprestsdk , azure-storage tools source.
i able compile things because literally add
-i/apps/azure/inst/include
to cmake_cxx_flags. can see used cmake_install_prefix=/apps/azure/inst, used both cpprest , azure-storage.
in lib subdirectory there cpprestsdk/ directory contains .cmake files. need .cmake file azure-storage can include in own cmakelists.txt, adds stuff need (flags, libs, etc.). looking @ samples reveals these built in way work during build of sdk.
does know if there such .cmake include file, , if .... installed?
ok well, find nothing , nobody posts answer, i've been experimenting. short answer is: use cpprest stuff , add azure-storage directives yourself.
the thing find cmake code in readme.md of cpprest. took in , added own azure storage dir name needed.
added:
find_path( azure_inst_dir "" hints /apps/azure/inst required ) the whole thing works because big bulk of dependencies under cpprest, azure-storage not have dependencies (thank god!).
note gcc users: turn off -wshadow , -woverloaded-virtual because cpprest , azure-storage code riddled (apparently these not available in visual studio).
Comments
Post a Comment