Commit 7dabf73c655242ca6621ff31f20ab8a47773923a
1 parent
01077e74
added parameter to control share installation
Showing
1 changed file
with
6 additions
and
3 deletions
CMakeLists.txt
| ... | ... | @@ -177,9 +177,12 @@ foreach(DIR ${BR_THIRDPARTY_APPS_DIR}) |
| 177 | 177 | endforeach() |
| 178 | 178 | |
| 179 | 179 | # Install |
| 180 | -install(FILES LICENSE.txt README.md DESTINATION share/openbr) | |
| 181 | -install(DIRECTORY share DESTINATION .) | |
| 182 | -install(DIRECTORY ${BR_THIRDPARTY_SHARE} DESTINATION share) | |
| 180 | +option(BR_INSTALL_SHARE "Install share/openbr files." ON) | |
| 181 | +if(${BR_INSTALL_SHARE}) | |
| 182 | + install(FILES LICENSE.txt README.md DESTINATION share/openbr) | |
| 183 | + install(DIRECTORY share DESTINATION .) | |
| 184 | + install(DIRECTORY ${BR_THIRDPARTY_SHARE} DESTINATION share) | |
| 185 | +endif() | |
| 183 | 186 | |
| 184 | 187 | # install brpy |
| 185 | 188 | option(BR_INSTALL_BRPY "Install brpy, the Python wrapper to the C API (requires Python)") | ... | ... |