Getting Started With CMake (An End-User's Perspective) For Cross-Platform Building (Part 6 of 6)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,876
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 1, 2009

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

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (ewmailing)

  • 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 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.)

see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • Nice video series ... I really appreciate the effort ... Another video series on how to write cmakefiles (CMakeLists.txt), how to convert from conventional makefile based build system to cmake etc ... Keep up the good work ....

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more