![]() ![]() You should use this feature to quickly switch between a release and a debug build of SUMO. In Visual Studio Code, you can easily switch between different predefined variants by using the command palette and entering CMake: Select Variant. ![]() This file describes certain features or properties for the CMake configuration process. These variants are defined in the cmake-variants.yaml file in the top-level directory of your SUMO repository. CMake refers to these features as variants. SUMO provides certain features that may be enabled or disabled during compilation. The CMake Tools plugin allows you to switch between different compiler kits by opening the command palette ( Command+Shift+P on macOS) and enter CMake: Select a kit. In CMake, these different compiler installations are referred to as compiler kits. You may have different C/C++ compilers installed on your machine. You can see the results of that process in the output window on the bottom. The CMake Tools plugin should automatically recognize the CMakeLists.txt file in the top-level SUMO directory and trigger a CMake configuration to find the compilers and available libraries. and point it to the directory of the repository. You can now open the local SUMO git repository in Visual Studio Code with File -> Open. Cmake: Parallel Jobs: if you have multiple CPUs or multiple CPU cores, set to a value of 2 * N, whereas N denotes the number of cores on your machine, e.g.Cmake: Build Directory: set to your out of source build directory, e.g.We would recommend to modify the following settings: Please note, that you can set these settings either for the user or for the current workspace, thus affecting all CMake projects in your workspace. A click on the cogwheel of the plugin allows you to open the extension settings window. Configuration #īefore opening the SUMO code base in Visual Studio Code, you should make sure, that the CMake Tools Plugin is properly configured. py file and just install the plugins Visual Studio Code recommends.Īfter you successfully installed these plugins, you will probably have to restart Visual Studio Code before they can be used. ![]() Usually it is also fine if you open some.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |