Private
Public Access
2
0

cmake: Added INSTALLTOOLS option that installs both mraa-gpio and mraa-i2c

Signed-off-by: Henry Bruce <henry.bruce@intel.com>
This commit is contained in:
Henry Bruce
2016-01-28 16:11:16 -08:00
committed by Brendan Le Foll
parent cb4c9152d6
commit d2fcb88c4b
2 changed files with 8 additions and 2 deletions

View File

@@ -39,6 +39,11 @@ add_subdirectory (c++)
install (DIRECTORY ${PROJECT_SOURCE_DIR}/examples/ DESTINATION ${CMAKE_INSTALL_DATADIR}/mraa/examples)
if (INSTALLGPIOTOOL)
if (INSTALLGPIOTOOL AND NOT INSTALLTOOLS)
install (TARGETS mraa-gpio DESTINATION bin)
endif()
if (INSTALLTOOLS)
install (TARGETS mraa-gpio DESTINATION bin)
install (TARGETS mraa-i2c DESTINATION bin)
endif()