11.2.2 : Le CMakeLists.txt

Voici le CMakeLists.txt : On définit notre projet :
1
2
cmake_minimum_required(VERSION 3.0)
project(TestChunk)


Quelques options de compilation classiques (optimisation -O2 et C++ 23) :
1
add_definitions(-Wall -O2 -std=c++23)


Enfin, notre exécutable :
1
add_executable(test_cartesian_product main.cpp)


Le fichier CMakeLists.txt complet :
1
2
3
4
5
cmake_minimum_required(VERSION 3.0)
project(TestChunk)

add_definitions(-Wall -O2 -std=c++23)
add_executable(test_cartesian_product main.cpp)


Le fichier CMakeLists.txt est disponible ici.