Chapter 6.2 : La compilation

Comme toujours, on créer un dossier build, dans notre projet, puis on va dedans :

1
2
mkdir build
cd build


On appelle cmake :

cmake ..

-- The C compiler identification is GNU 11.3.0

-- The CXX compiler identification is GNU 11.3.0

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Check for working C compiler: /usr/bin/gcc - skipped

-- Detecting C compile features

-- Detecting C compile features - done

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Check for working CXX compiler: /usr/bin/g++ - skipped

-- Detecting CXX compile features

-- Detecting CXX compile features - done

-- Configuring done

-- Generating done

-- Build files have been written to: XXX/SimpleDotProductRandom/build



On appelle make :

[ 50%] Building CXX object CMakeFiles/simple_dot_product_random.dir/main.cpp.o

[100%] Linking CXX executable simple_dot_product_random

[100%] Built target simple_dot_product_random