Part 3 : Starting the project



We will develop all the code for this tutorial in a directory ExampleOptimisation.

$ mkdir ExampleOptimisation


In this directory we will create other directories :

  • Performances : to store all the performances results.
  • build : to build the project (call CMake and Make).
  • All the future example during this tutorial.


$ mkdir Performances
$ mkdir build


It will be our project directory, and we have to create a CMakeLists.txt in the ExampleOptimisation directory :

1
2
3
4
project(HPC_ASTERICS)
cmake_minimum_required(VERSION 3.0)

add_subdirectory(Performances)


Do not forget to create an other CMakeLists.txt in the Performances directory :

1
2
project(HPC_ASTERICS)
cmake_minimum_required(VERSION 3.0)


Now you have :

  • ExampleOptimisation
    • build
    • Performances
      • CMakeLists.txt
    • CMakeLists.txt