Skip to content

Commit 925958d

Browse files
committed
makefile: add target to build examples
Makefile have been updated to support building examples.
1 parent 904c26e commit 925958d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,14 @@ build-integration-test-bin-if-missing:
216216
cmake -DCASS_BUILD_INTEGRATION_TESTS=ON -DCMAKE_BUILD_TYPE=Release .. && (make -j 4 || make);\
217217
}
218218

219+
build-examples:
220+
@{\
221+
echo "Building examples to ${EXAMPLES_DIR}";\
222+
mkdir "${BUILD_DIR}" >/dev/null 2>&1 || true;\
223+
cd "${BUILD_DIR}";\
224+
cmake -DCASS_BUILD_INTEGRATION_TESTS=off -DCASS_BUILD_EXAMPLES=on -DCMAKE_BUILD_TYPE=Release .. && (make -j 4 || make);\
225+
}
226+
219227
_update-rust-tooling:
220228
@echo "Run rustup update"
221229
@rustup update

0 commit comments

Comments
 (0)