Small change to CMakeLists template to support framework and other weird mac links