Chapter 1.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/SimpleHadamardProduct/build
On appelle make :
1 2 3 |
[ 50%] Building CXX object CMakeFiles/simple_hadamard_product.dir/main.cpp.o [100%] Linking CXX executable simple_hadamard_product [100%] Built target simple_hadamard_product |