Refactored CMakeLists.txt to not require hard-coded directories.