[CMake] Populate LLDB.framework's headers directory
authorChris Bieneman <beanz@apple.com>
Fri, 14 Oct 2016 17:09:55 +0000 (17:09 +0000)
committerChris Bieneman <beanz@apple.com>
Fri, 14 Oct 2016 17:09:55 +0000 (17:09 +0000)
commit9a6502f1cd3ed10dd1c830499b373710ce436816
treeb4c520ad1f14a4624212563fbb6b627ac5e92cf7
parent4a2ef91143f10eabeefb3c160954c4bc52b6962d
[CMake] Populate LLDB.framework's headers directory

Summary:
This patch adds support for installing public headers in LLDB.framework, and symlinking the headers into the build directory.

While writing the patch I discovered a bug in CMake that prevents applying POST_BUILD steps to framework targets (https://gitlab.kitware.com/cmake/cmake/issues/16363).

I've implemented the support using POST_BUILD steps wrapped under a CMake version check with a TODO so that we can track the fix.

Reviewers: tfiala, zturner, spyffe

Subscribers: lldb-commits, mgorny

Differential Revision: https://reviews.llvm.org/D25570

llvm-svn: 284250
lldb/source/API/CMakeLists.txt