User Tools

Site Tools


devs:usecmake

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
devs:usecmake [2022/04/05 16:17]
calogero
devs:usecmake [2022/04/05 16:25] (current)
calogero
Line 2: Line 2:
 This page is dedicated to the uttilisation of CMake. This page is dedicated to the uttilisation of CMake.
  
-===== 1 Setting up CMake ===== +===== 1 Installing ​CMake =====
-==== 1.1 Installing CMake ====+
  
   * __Windows__:​ \\ Download and install CMake for windows : [[https://​cmake.org/​download/​]] \\ You need to install the Windows x64 Installer .msi   * __Windows__:​ \\ Download and install CMake for windows : [[https://​cmake.org/​download/​]] \\ You need to install the Windows x64 Installer .msi
Line 12: Line 11:
 The default path of the compiler is : "​C:/​Program Files (x86)/​Intel/​oneAPI/​mkl/​2021.2.0/​lib/​intel64"​. If yours is different, you need to adapt it in the main CMakeLists.txt file. It exists a main for every project (Prepro, Lagamine and Select) and one for the whole project (the main one). The default path of the compiler is : "​C:/​Program Files (x86)/​Intel/​oneAPI/​mkl/​2021.2.0/​lib/​intel64"​. If yours is different, you need to adapt it in the main CMakeLists.txt file. It exists a main for every project (Prepro, Lagamine and Select) and one for the whole project (the main one).
  
-==== 1.2 Using CMake ====+====2 Using CMake =====
  
 The idea of CMake is to develop a file (CMakeLists.txt) that build up a .sln file (it is the Lagamine Visual Studio project), it allows to compile Lagamine on any calculating machine easily, without having to define compiler parameters. The idea of CMake is to develop a file (CMakeLists.txt) that build up a .sln file (it is the Lagamine Visual Studio project), it allows to compile Lagamine on any calculating machine easily, without having to define compiler parameters.
Line 27: Line 26:
   - Use the right version of Visual Studio in " Specify the generator for this project"​.   - Use the right version of Visual Studio in " Specify the generator for this project"​.
   - Impose the use of x64 (if this step is not done error in compilation,​ see [[devs:​install|Installation guide]] in 2.4.1).   - Impose the use of x64 (if this step is not done error in compilation,​ see [[devs:​install|Installation guide]] in 2.4.1).
 +  - Then press on "​Finish"​.
 <​imgcaption utilisation2|>​{{ :​devs:​cmake2_configure.jpg?​nolink |}}</​imgcaption>​ <​imgcaption utilisation2|>​{{ :​devs:​cmake2_configure.jpg?​nolink |}}</​imgcaption>​
  
 +The window will receive some results (see <imgref utilisation3>​)
  
 +<​imgcaption utilisation3|>​{{ :​devs:​cmake3_results.jpg?​nolink |}}</​imgcaption>​
 +
 +Then press on "​generate"​ and the VS project will be created and it will be ready to compile.
  
  
  
  
devs/usecmake.1649168260.txt.gz · Last modified: 2022/04/05 16:17 by calogero