Now that we have our testing simplified and automated we have a great
foundation upon which to build our amazing command line To Do list app.
What’s that? You say that an awesome To Do app allows you to add items to
your list? Indeed it does, and more! But wait, let’s not get ahead …Continue reading "CMake Tutorial – Chapter 6: Realistically Getting a Boost"
Last time we added a nice unit test and then set up CMake to build it, of
course, and add it to the list of tests that CTest will run. This is great,
now we can run cmake then use make and make
test to test our project. Now it’s time to build on our …Continue reading "CMake Tutorial – Chapter 5: Functionally Improved Testing"
So far our project is rather simple. A real project would be more
complicated than the one we’ve created. Let’s add subdirectories, libraries,
and proper unit tests to make our project more realistic.
In this chapter we will split up our project to have a library which we can
put in a subdirectory. Then we …Continue reading "CMake Tutorial – Chapter 4: Libraries and Subdirectories"
Although when we looked at IDE projects generated by CMake we still used the
command line. You can also use the CMake GUI to generate and configure
projects. This can be convenient if you don’t like the command line, however
it can be even more useful than that.
CMake stores a lot of configuration settings …Continue reading "CMake Tutorial – Chapter 3: GUI Tool"
Now that we are familiar with CMake I will make good on CMake’s promise of
flexibility. I said before that CMake could create projects for various
IDE’s and in this chapter we will do so. This is one of CMake’s greatest
strengths as it allows for very diverse development environments while
working on the same …Continue reading "CMake Tutorial – Chapter 2: IDE Integration"
In this chapter we start by installing CMake. Like most open source software
the best way to do this depends on your platform and how you usually do
things. Once we have CMake installed we create a simple project. Perhaps
it’s a little fancier than “hello world” but not much. We finish up with the
…Continue reading "CMake Tutorial – Chapter 1: Getting Started"
What is CMake?
According to CMake’s creators, Kitware, CMake is an open-source cross
platform build system. This is not completely accurate as CMake is not
actually a build system. What CMake provides is an easy way to build C/C++
projects across platforms. The reason I say that CMake isn’t a build system
is because it …Continue reading "CMake Tutorial"