Skip to content

Commit

Permalink
Merge pull request #78 from yczhang-nv/impl-cpp-monitor-stage-deps
Browse files Browse the repository at this point in the history
Add `indicators` dependency for C++ version of `MonitorStage`
  • Loading branch information
cwharris authored Nov 12, 2024
2 parents 7f59045 + d0bf027 commit a4da871
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
include_guard(GLOBAL)

function(morpheus_utils_configure_indicators)
list(APPEND CMAKE_MESSAGE_CONTEXT "indicators")

morpheus_utils_assert_cpm_initialized()
set(INDICATORS_VERSION "2.3" CACHE STRING "Version of indicators to use")

rapids_cpm_find(indicators ${INDICATORS_VERSION}
GLOBAL_TARGETS
indicators indicators::indicators
BUILD_EXPORT_SET
${PROJECT_NAME}-exports
INSTALL_EXPORT_SET
${PROJECT_NAME}-exports
CPM_ARGS
GIT_REPOSITORY https://github.com/p-ranav/indicators.git
GIT_TAG "v${INDICATORS_VERSION}"
GIT_SHALLOW TRUE
OPTIONS "INDICATORS_INSTALL ON"
"INDICATORS_TEST OFF"
)

list(POP_BACK CMAKE_MESSAGE_CONTEXT)
endfunction()
1 change: 1 addition & 0 deletions cmake/morpheus_utils/package_config/register_api.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ include(${CMAKE_CURRENT_LIST_DIR}/expected/Configure_expected.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/glog/Configure_glog.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/grpc/Configure_grpc.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/hwloc/Configure_hwloc.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/indicators/Configure_indicators.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/matx/Configure_matx.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/mrc/Configure_mrc.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/nlohmann_json/Configure_nlohmann_json.cmake)
Expand Down

0 comments on commit a4da871

Please sign in to comment.