I have posted a series of videos (actually one video that I chopped up into YouTube sized chunks) that demonstrate how to use CMake to build a project with your operating system and IDE of choice.
This is not a tutorial on how to code CMake. This is a tutorial on how to build a project that uses CMake. It's not hard, but I've found that a lot of newbies and outsiders don't know where to start or fully understand what CMake actually does and all the cool things CMake is capable of doing such as generating Visual Studio, Xcode, and Eclipse projects.
So this video shows off some of the generator capabilities of CMake. I also do some useful tips and tricks.
Specifically, this video uses a new OpenGL related project called Chaskii (which I helped write the CMake build system for). And using virtualization, I do a side-by-side(-by-side-by-side) comparison of building the same project under Linux, Mac and Windows, demonstrating the Makefile, Eclipse, Xcode, and Visual Studio generators.
This screencast was originally made to help the Chaskii users, but in hindsight, I realized that this video covers a lot of general ideas that would be useful for CMake users in general. So I am making this available for all.
For best results, please watch the HD version so you can read any small text. (I've significantly improved my recording and encoding quality techniques over my last videos.)
Part 1: Introduction, Out-of-source builds, and Makefile generator on Ubuntu Linux.
Part 2: Makefiles continued, CMake Targets, Automatic Dependency Tracking, Output Directories, rpath, make install & make uninstall
Part 3: Eclipse Generator
Part 4: CMake GUIs (ccmake), Xcode generator on Mac OS X 10.5, CPack to make .pkg installer
Part 5: CMake-GUI on Windows XP, environmental variable tricks, Visual Studio
Part 6: Install target and Windows Registry entries, Back to Linux/Makefiles, Debug and Release types for Makefiles, Auto-regeneration by CMake
Chaskii is open source and can be found here:
http://chaskii.org
svn co https://www.andesengineering.com/svn/Chaskii/branches/Chaskii_1.0/
CMake as always can be found here:
http://www.cmake.org
My website:
http://playcontrol.net
Thanks for this video series. It was a good intro into how to use the CMake application. I plan to use CMake on some of my future projects and I was hoping to take a look at the Chaskii source (since it is open source) for some real-world CMakeLists.txt examples. I must be blind, because I can't actually find the source code. Could you please point me in the right direction? Thanks.
duest 2 years ago
@duest Oops. Sorry, didn't see the comment.
I updated the link on this page and the 1st page. (Didn't feel like changing them all right now.)
ewmailing 1 year ago