Häufig gestellte Fragen

Brauchen Sie technischen Support?

Compiling CarMaker exe with CMake for Windows and Linux

Frage

How to compile a CarMaker executable for Windows and Linux using CMake?

Antwort

Prerequisites:

  • CMake and Visual Studio Code are installed.
  • CMake and CMake Tools extensions are added to Visual Studio Code.
  1. Download the attached template. It consists of the following files and folders: cmake, src, CMakeLists.txt and Readme.pdf
  2. Copy the folder “cmake” and the text file “CMakeLists.txt” to the top level of your project folder
  3. Copy the text file “CMakeLists.txt” located inside src to your project folder also inside src
  4. Open “CMakeLists.txt” at the top level of the project folder and set CarMaker Version on line 9
  5. Open the project folder in Visual Studio Code (Check prerequisites)
  6. 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
  7. Navigate in the Visual Studio Code Terminal to the folder “build” inside your project folder
  8. Type-> cmake ..
  9. Type-> cmake --build . --target install

The compiled executable is located inside “bin” on the top level of the project folder.

Download: CMake.7z

Brauchen Sie technischen Support?
  • Datum: 25.03.2024
  • Produkt: CarMaker
  • Version: 13.0
  • Komponente: C-Code Interface
  • Sprache: Englisch

Tags

CMake