Need technical support?
Compiling CarMaker exe with CMake for Windows or Linux
Question
How to compile a CarMaker executable for Windows or Linux using CMake?
Solution
Prerequisites:
- CMake and Visual Studio Code are installed.
- CMake and CMake Tools extensions are added to Visual Studio Code.
- Download the attached template. It consists of the following files and folders: cmake, src, CMakeLists.txt and Readme.pdf
- Copy the folder “cmake” and the text file “CMakeLists.txt” to the top level of your project folder
- Copy the text file “CMakeLists.txt” located inside src to your project folder also inside src
- Open “CMakeLists.txt” at the top level of the project folder and set CarMaker Version on line 9
- Open the project folder in Visual Studio Code (Check prerequisites)
- Press ctrl+shift+p. A drop down menu will open. Search for “CMake: Configure” and select it
The available compilers will show up. Select a compiler - Press ctrl+shift+p again. The drop down menu will open. Search for “CMake: Install” and select it
The compiled executable is located inside “bin” on the top level of the project folder.
Need technical support?
- Date: 25.03.2024
- Product: CarMaker
- Version: 13.0
- Component: C-Code Interface
- Language: English