CMake setup for a C++ project
This repository is a companion to our blogpost on
Configuring CMake for success. It
contains an example of our structure for a minimal program called
palindrome which checks if a
word is a palindrome, i.e. a word that reads the same backward as forward,
see Wikipedia's article on Palindromes for some examples.
This repository contains subfolders with different versions of our project setup:
This is the general setup for building a
palindrome executable with some unittests.
Setup for building
libPalindrome as a public library to be used by others.
Example setup for building an Android app for our C++
libPalindrome which we connect to via JNI
(Java Native Interface). We keep the unittests from the general setup and hook them up so we can
execute them outside the Android environment.