Skip to content
/ cmake Public
forked from sunzuolei/cmake

C++ projects organized with CMake on Linux

Notifications You must be signed in to change notification settings

Avon-Xu/cmake

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About the poject

The examples show how to develope C++ project with CMake on Linux.

Demo A

All the files are in one directory. Only one "CMakeLists.txt" is involved.

Demo B

Two subdirectories are introduced, but only one "CMakeLists.txt" exists.

Demo C

Each subdirectory owns one "CMakeLists.txt". The files contained in folder "core" are for library building.

Demo D

The project structure is similar to Demo C, but the demo bin is generated to the specified folder.

Demo E

Two separated modules are built as two shared libraries.

Demo F

All the core modules are made as one library.

Demo G

The demo links the shared library pre-built by demo F.

Demo H

A cmake macro is used to range over all the subdirectories in "core". This demo presents the usage of cmake macro.

Demo I

It shows how to test the user lib module with Boost. NOTE: the Boost package should be installed before making the demo otherwise error will occur. While the method of calling a third part package is presented as well.

For more information, please contact sunzuolei@gmail.com

About

C++ projects organized with CMake on Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 56.9%
  • Makefile 23.3%
  • C++ 15.6%
  • C 4.2%