The examples show how to develope C++ project with CMake on Linux.
All the files are in one directory. Only one "CMakeLists.txt" is involved.
Two subdirectories are introduced, but only one "CMakeLists.txt" exists.
Each subdirectory owns one "CMakeLists.txt". The files contained in folder "core" are for library building.
The project structure is similar to Demo C, but the demo bin is generated to the specified folder.
Two separated modules are built as two shared libraries.
All the core modules are made as one library.
The demo links the shared library pre-built by demo F.
A cmake macro is used to range over all the subdirectories in "core". This demo presents the usage of cmake macro.
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