cmake: add option to disable example building
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -57,6 +57,7 @@ option (BUILDSWIGJAVA "Build Java API." OFF)
|
|||||||
option (IPK "Generate IPK using CPack" OFF)
|
option (IPK "Generate IPK using CPack" OFF)
|
||||||
option (RPM "Generate RPM using CPack" OFF)
|
option (RPM "Generate RPM using CPack" OFF)
|
||||||
option (BUILDPYTHON3 "Use python3 for building/installing" OFF)
|
option (BUILDPYTHON3 "Use python3 for building/installing" OFF)
|
||||||
|
option (ENABLEEXAMPLES "Disable building of examples" ON)
|
||||||
option (INSTALLGPIOTOOL "Install gpio tool" OFF)
|
option (INSTALLGPIOTOOL "Install gpio tool" OFF)
|
||||||
option (BUILDARCH "Override architecture to build for - override" OFF)
|
option (BUILDARCH "Override architecture to build for - override" OFF)
|
||||||
option (TESTS "Override the addition of tests" ON)
|
option (TESTS "Override the addition of tests" ON)
|
||||||
@@ -171,4 +172,6 @@ if (RPM)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory (src)
|
add_subdirectory (src)
|
||||||
add_subdirectory (examples)
|
if (ENABLEEXAMPLES)
|
||||||
|
add_subdirectory (examples)
|
||||||
|
endif ()
|
||||||
|
|||||||
Reference in New Issue
Block a user