Add BUILD_EXAMPLES CMake option

Signed-off-by: Muhammad Awad <MuhammadAbdelghaffar.Awad@amd.com>


[ROCm/rocshmem commit: 7a6b3261a3]
Este commit está contenido en:
Muhammad Awad
2025-01-18 15:26:20 -06:00
padre 7b7f8b2998
commit 6688cf8fd6
+5 -1
Ver fichero
@@ -54,6 +54,7 @@ option(USE_SHARED_CTX "Request support for shared ctx between WG" OFF)
option(USE_SINGLE_NODE "Enable single node support only." OFF)
option(USE_HOST_SIDE_HDP_FLUSH "Use a polling thread to flush the HDP cache on the host." OFF)
option(BUILD_FUNCTIONAL_TESTS "Build the functional tests" ON)
option(BUILD_EXAMPLES "Build the examples" ON)
option(BUILD_SOS_TESTS "Build the host-facing tests" OFF)
option(BUILD_UNIT_TESTS "Build the unit tests" ON)
option(BUILD_LOCAL_GPU_TARGET_ONLY "Build only for GPUs detected on this machine" OFF)
@@ -152,7 +153,10 @@ target_include_directories(
###############################################################################
add_subdirectory(src)
add_subdirectory(tests)
add_subdirectory(examples)
IF (BUILD_EXAMPLES)
add_subdirectory(examples)
ENDIF()
###############################################################################
# HIP