Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make corrosion_install support include directories
Supports directories added with `target_include_directories` like normal. There is a slight oddity. Because of how install(DIRECTORY) works, we can't put the include directory inside `${CMAKE_INSTALL_PREFIX}/include`, since that would create `${CMAKE_INSTALL_PREFIX}/include/<include dir name>`. Instead we copy directly to the CMAKE_INSTALL_PREFIX, and then use whatever name the include directory had (hopefully just `include`). This means that when installing the path to include files will be -- Installing: /tmp/install/./include -- Installing: /tmp/install/./include/is_odd -- Installing: /tmp/install/./include/is_odd/is_odd.h Instead of just -- Installing: /tmp/install/include -- Installing: /tmp/install/include/is_odd -- Installing: /tmp/install/include/is_odd/is_odd.h
- Loading branch information