Skip to content

Commit f46bb77

Browse files
committedJul 1, 2024
1/2
1 parent 0b57650 commit f46bb77

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
 

‎CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ project(OpenVINOGenAI
2323
HOMEPAGE_URL "https://github.com/openvinotoolkit/openvino.genai"
2424
LANGUAGES CXX)
2525

26+
option(ENABLE_CONTINUOUS_BATCHING "" OFF)
27+
option(ENABLE_APPS "Enable C++ continuous batching apps. Ignored if ENABLE_CONTINUOUS_BATCHING is OFF" ON)
28+
2629
# Find OpenVINODeveloperPackage first to compile with SDL flags
2730
find_package(OpenVINODeveloperPackage QUIET
2831
PATHS "${OpenVINO_DIR}")

‎src/cpp/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,7 @@ write_basic_package_version_file("${CMAKE_BINARY_DIR}/OpenVINOGenAIConfigVersion
113113
install(FILES "${CMAKE_BINARY_DIR}/OpenVINOGenAIConfig.cmake" "${CMAKE_BINARY_DIR}/OpenVINOGenAIConfigVersion.cmake"
114114
DESTINATION runtime/cmake COMPONENT core_genai_dev)
115115
export(EXPORT OpenVINOGenAITargets FILE "${CMAKE_BINARY_DIR}/OpenVINOGenAITargets.cmake" NAMESPACE openvino::)
116+
117+
if(ENABLE_CONTINUOUS_BATCHING)
118+
add_subdirectory(continuous_batching)
119+
endif()

0 commit comments

Comments
 (0)