File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ set(CMAKE_CXX_STANDARD 17)
25
25
set (CMAKE_CXX_STANDARD_REQUIRED YES )
26
26
27
27
# Build Options
28
+ option (UR_BUILD_EXAMPLES "Build example applications." ON )
28
29
option (UR_BUILD_TESTS "Build unit tests." ON )
29
30
option (UR_BUILD_TOOLS "build ur tools" ON )
30
31
option (UR_FORMAT_CPP_STYLE "format code style of C++ sources" OFF )
@@ -258,7 +259,9 @@ install(
258
259
EXPORT ${PROJECT_NAME} -targets )
259
260
260
261
add_subdirectory (source )
261
- add_subdirectory (examples )
262
+ if (UR_BUILD_EXAMPLES )
263
+ add_subdirectory (examples )
264
+ endif ()
262
265
if (UR_BUILD_TESTS )
263
266
add_subdirectory (test )
264
267
endif ()
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ List of options provided by CMake:
118
118
119
119
| Name | Description | Values | Default |
120
120
| - | - | - | - |
121
+ | UR_BUILD_EXAMPLES | Build example applications | ON/OFF | ON |
121
122
| UR_BUILD_TESTS | Build the tests | ON/OFF | ON |
122
123
| UR_BUILD_TOOLS | Build tools | ON/OFF | ON |
123
124
| UR_FORMAT_CPP_STYLE | Format code style | ON/OFF | OFF |
You can’t perform that action at this time.
0 commit comments