Create target directories if they do not exist
Add CMake file