Adding A New Directory to a project
# A common way to extend a project is to add a new directory. This involves three steps: Create the new directory somewhere in your source directory hierarchy.
# Add the new directory to the SUBDIRS command in the parent directories CMakeLists.txt
# Create a CMakeLists.txt in the new directory with the appropriate commands
--> Ca te pourri un max ton répertoire source (déja que même une seul fichier à la racine du source est pour moi inacceptable, un fichier projet n'a pas à être dans /src... Et je passe sur les ./configure et compagnie qui sont souvent à la racine pour un projet Linux : et si je mettais les projet Boralnd, Microsoft ou Xcode à la racine aussi, ca ferait un beau bordel... Mais ca va, grace à Autotools je survi a peut pret, je peux les mettre dans un /prj/gnu...)
[^] # Re: autotools ?
Posté par Zenitram (site web personnel) . En réponse à la dépêche VHFFS l'hébergement libre pour tous en 4.1. Évalué à 1.
Car tiré de :
http://www.cmake.org/HTML/WritingCMakeLists.html
(c'est quand même la doc officielle...)
Adding A New Directory to a project
# A common way to extend a project is to add a new directory. This involves three steps: Create the new directory somewhere in your source directory hierarchy.
# Add the new directory to the SUBDIRS command in the parent directories CMakeLists.txt
# Create a CMakeLists.txt in the new directory with the appropriate commands
--> Ca te pourri un max ton répertoire source (déja que même une seul fichier à la racine du source est pour moi inacceptable, un fichier projet n'a pas à être dans /src... Et je passe sur les ./configure et compagnie qui sont souvent à la racine pour un projet Linux : et si je mettais les projet Boralnd, Microsoft ou Xcode à la racine aussi, ca ferait un beau bordel... Mais ca va, grace à Autotools je survi a peut pret, je peux les mettre dans un /prj/gnu...)