Difference between revisions of "CMake:GNU style example"

From KitwarePublic
Jump to navigationJump to search
Line 16: Line 16:
*** yo.c  (the trivial library)
*** yo.c  (the trivial library)


The tarball for the project is available [[http://www.bzflag.bz/~butler/cmake_ex.tgz|here]]
The tarball for the project is available [http://www.bzflag.bz/~butler/cmake_ex.tgz here]

Revision as of 05:57, 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. The heirarchy is as follows:

  • 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 here