CMake:GNU style example: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
[[CMake#Tutorials|back to tutorials list]]
[[CMake#Tutorials|back to tutorials list]]


GNU style projects typically have a main directory that contains include and src subdirectories.  The src directory in turn contains directories for libraries and applications.  This is a brief example of such a project using CMake.
GNU style projects typically have a main directory that contains ''include'' and ''src'' subdirectories.  The ''src'' directory in turn contains directories for libraries and applications.  This is a brief example of such a project using CMake.
 
The directory heirarchy looks like this:
 
* CMakeLists.txt
* include
** CMakeLists.txt
** yo.h
* src
** CMakeLists.txt
** app
***CMakeLists.txt
***hello.c
**libyo
***CMakeLists.txt
***yo.c

Revision as of 05:47, 11 August 2007

back to tutorials list

GNU style projects typically have a main directory that contains include and src subdirectories. The src directory in turn contains directories for libraries and applications. This is a brief example of such a project using CMake.