https://github.com/qedsoftware/cmake-demo
(C++) Demonstration of CMake.
https://github.com/qedsoftware/cmake-demo
Last synced: 3 months ago
JSON representation
(C++) Demonstration of CMake.
- Host: GitHub
- URL: https://github.com/qedsoftware/cmake-demo
- Owner: qedsoftware
- Created: 2013-03-10T08:18:47.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-03-10T09:39:57.000Z (over 13 years ago)
- Last Synced: 2025-01-01T00:45:05.895Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 129 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
cmake demo
===============
This is a demonstration of using CMake to build a C++ program that calls both internal and external libraries.
The program's output is pointless --- this is only an exercise in cross-platform compilation and automated resolving of dependencies.
William Wu (william.wu@themathpath.com), 2013 March 10
Instructions
---------------
$ mkdir build
$ cd build
$ cmake ..
$ make
$ src/CMAKEDEMO
*** MATH DEMO ***
The sine of 0.314159 is 0.309017
*** CUSTOM LIBRARY DEMO: LAMENT ***
Overslept
So tired
If late
Get fired
Why bother?
Why the pain?
Just go home
Do it again.
-- Norman Colm, 'The Worker's Lament'
*** CUSTOM LIBRARY DEMO: PI ***
Approximation to PI: 3.15625
The default test only references math library and internal libraries.
To test linking with the boost external library, execute
$ git checkout with-boost
and follow the same instructions.