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

@@ -69,6 +69,7 @@ option (RPM "Generate RPM using CPack" OFF)
option (BUILDPYTHON3 "Use python3 for building/installing/testing" OFF) option (BUILDPYTHON3 "Use python3 for building/installing/testing" OFF)
option (ENABLEEXAMPLES "Disable building of examples" ON) option (ENABLEEXAMPLES "Disable building of examples" ON)
option (INSTALLGPIOTOOL "Install gpio tool" OFF) option (INSTALLGPIOTOOL "Install gpio tool" OFF)
option (INSTALLTOOLS "Install all tools" OFF)
option (BUILDARCH "Override architecture to build for - override" OFF) option (BUILDARCH "Override architecture to build for - override" OFF)
option (BUILDTESTS "Override the addition of tests" ON) option (BUILDTESTS "Override the addition of tests" ON)

View File

@@ -39,6 +39,11 @@ add_subdirectory (c++)
install (DIRECTORY ${PROJECT_SOURCE_DIR}/examples/ DESTINATION ${CMAKE_INSTALL_DATADIR}/mraa/examples) 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) install (TARGETS mraa-gpio DESTINATION bin)
endif() endif()
if (INSTALLTOOLS)
install (TARGETS mraa-gpio DESTINATION bin)
install (TARGETS mraa-i2c DESTINATION bin)
endif()