A demo to compile code in multiple directories using cmake.