The azsphere_configure_tools function specifies the minimum SDK version that is required to build your application. For example, the 20.04 release introduced four new CMake functions that were not present in the 20.01 release. For example:Īzsphere_configure_tools(TOOLS_REVISION "20.04")ĭifferent versions of the Azure Sphere tools may offer different CMake features. This call must precede all other function calls. You must specify the Azure Sphere SDK version for your build by calling the azsphere_configure_tools function to store the value in CMakeLists.txt. The CMakeLists.txt file must call the project command before any of the azsphere_ functions. If you have an existing application that was created with an SDK earlier than 20.04, see Convert an existing app to use the CMake functions. Azure Sphere supports the use of the following functions in CMakeLists.txt: Name The CMakeLists.txt file provides the general configuration settings that CMake uses to build an application. The specific character is determined by the Windows or Linux terminal configuration. The line continuation character "^" for the Windows command line, " \ " for the Linux command line, or "`" for Powershell can be used for readability but is not required. Required for building with Visual Studio Code.ĬMake parameters are separated by spaces. Visual Studio configuration file for projects with multiple roots, as in the IntercoreComms sample. Either this file or CMakePresets.json is required for building with Visual Studio. Either this file or CMakeSettings.json is required for building with Visual Studio. Required for all builds.Ĭonfiguration presets file for Visual Studio and Visual Studio Code. CMake Tools extension for Visual Studio CodeĬMake builds use the following files: File.The following sources provide information about using CMake with Visual Studio or Visual Studio Code: CMake is an open-source, cross-platform make system. Azure Sphere uses CMake to configure builds for applications with Visual Studio, Visual Studio Code, and the Windows and Linux command lines.
0 Comments
Leave a Reply. |