separating libraries and CMakeLists