summaryrefslogtreecommitdiff
path: root/python/openvino/runtime/common/monitors/CMakeLists.txt
diff options
context:
space:
mode:
authorEric Dao <eric@erickhangdao.com>2025-03-10 17:54:31 -0400
committerEric Dao <eric@erickhangdao.com>2025-03-10 17:54:31 -0400
commitab224e2e6ba65f5a369ec392f99cd8845ad06c98 (patch)
treea1e757e9341863ed52b8ad4c5a1c45933aab9da4 /python/openvino/runtime/common/monitors/CMakeLists.txt
parent40da1752f2c8639186b72f6838aa415e854d0b1d (diff)
downloadthesis-master.tar.gz
thesis-master.tar.bz2
thesis-master.zip
completed thesisHEADmaster
Diffstat (limited to 'python/openvino/runtime/common/monitors/CMakeLists.txt')
-rw-r--r--python/openvino/runtime/common/monitors/CMakeLists.txt38
1 files changed, 38 insertions, 0 deletions
diff --git a/python/openvino/runtime/common/monitors/CMakeLists.txt b/python/openvino/runtime/common/monitors/CMakeLists.txt
new file mode 100644
index 0000000..1bfe0b9
--- /dev/null
+++ b/python/openvino/runtime/common/monitors/CMakeLists.txt
@@ -0,0 +1,38 @@
+# Copyright (C) 2018-2019 Intel Corporation
+# SPDX-License-Identifier: Apache-2.0
+#
+
+find_package(OpenCV REQUIRED COMPONENTS core imgproc)
+
+set(SOURCES
+ src/cpu_monitor.cpp
+ src/memory_monitor.cpp
+ src/presenter.cpp)
+
+set(HEADERS
+ include/monitors/cpu_monitor.h
+ include/monitors/memory_monitor.h
+ include/monitors/presenter.h)
+
+if(WIN32)
+ list(APPEND SOURCES src/query_wrapper.cpp)
+ list(APPEND HEADERS include/monitors/query_wrapper.h)
+endif()
+# Create named folders for the sources within the .vcproj
+# Empty name lists them directly under the .vcproj
+source_group("src" FILES ${SOURCES})
+source_group("include" FILES ${HEADERS})
+
+add_library(monitors STATIC ${SOURCES} ${HEADERS})
+target_include_directories(monitors PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
+target_link_libraries(monitors PRIVATE opencv_core opencv_imgproc)
+if(WIN32)
+ target_link_libraries(monitors PRIVATE pdh)
+
+ target_compile_definitions(monitors PRIVATE
+ # Prevents Windows.h from adding unnecessary includes
+ WIN32_LEAN_AND_MEAN
+ # Prevents Windows.h from defining min/max as macros
+ NOMINMAX
+ )
+endif()