From fdc2add3200fb8e31cf9cc6b7fdbe1eb1895e94a Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Mon, 19 Feb 2024 11:28:56 -0500 Subject: [PATCH] modified: content/2024-02-17-integrating-openai-with-dry-sample-chat-game.rst --- ...24-02-17-integrating-openai-with-dry-sample-chat-game.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/2024-02-17-integrating-openai-with-dry-sample-chat-game.rst b/content/2024-02-17-integrating-openai-with-dry-sample-chat-game.rst index 23ce093..5566637 100644 --- a/content/2024-02-17-integrating-openai-with-dry-sample-chat-game.rst +++ b/content/2024-02-17-integrating-openai-with-dry-sample-chat-game.rst @@ -58,6 +58,8 @@ Follow these steps to integrate OpenAI with the Sample Chat game: 2. **Update the CMake Configuration** + Note: update ``PROJECT_SOURCE_DIR`` with your file path. + Apply the following diff to `CMakeLists.txt` to include the OpenAI C++ client as well as cURL in your dry project: .. code-block:: diff @@ -76,6 +78,9 @@ Follow these steps to integrate OpenAI with the Sample Chat game: +# Globally link cURL to all targets +link_libraries(${CURL_LIBRARIES}) + + +# Assuming this is set to your project's root directory + +set(PROJECT_SOURCE_DIR /home/fox/git/dry) + + +# Create a symbolic link for openai +execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink + ${PROJECT_SOURCE_DIR}/Source/ThirdParty/openai