CMake:GNU style example: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
No edit summary
(Replace content with link to new CMake community wiki)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[CMake#Tutorials|back to tutorials list]]
{{CMake/Template/Moved}}


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 heirarchy is as follows:
This page has moved [https://gitlab.kitware.com/cmake/community/wikis/doc/tutorials/GNU-style-example here].
 
* CMakeLists.txt
* include
** CMakeLists.txt
** yo.h (the header file for the library)
* src
** CMakeLists.txt
**app
*** CMakeLists.txt
*** hello.c  (the application)
**libyo
*** CMakeLists.txt
*** yo.c  (the trivial library)
 
The tarball for the project is available [http://www.bzflag.bz/~butler/cmake_ex.tgz here]
 
 
[[Category:CMake]]

Latest revision as of 15:40, 30 April 2018


The CMake community Wiki has moved to the Kitware GitLab Instance.

This page has moved here.