# # SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # # See LICENSE.txt for more license information # set(SRC_FILES ${CMAKE_CURRENT_SOURCE_DIR}/plugin.c ) # Create shared library add_library(nccl-env-example SHARED ${SRC_FILES}) # Set include directories target_include_directories(nccl-env-example PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/nccl ) # Set output name to match Makefile set_target_properties(nccl-env-example PROPERTIES OUTPUT_NAME "nccl-env-example" PREFIX "lib" POSITION_INDEPENDENT_CODE ON LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/test/unit/plugins )