Skip to content

Commit

Permalink
Merge pull request #84 from richinseattle/main
Browse files Browse the repository at this point in the history
Fix build for windows
  • Loading branch information
D7EAD authored Dec 1, 2024
2 parents 4049948 + 10f26c9 commit b008194
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ cmake_minimum_required(VERSION 3.13)

project(liboai)

IF(WIN32)
set(VCPKG_CMAKE_PATH $ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake CACHE FILEPATH "Location of vcpkg.cmake")
include(${VCPKG_CMAKE_PATH})
find_package(ZLIB REQUIRED)
find_package(nlohmann_json CONFIG REQUIRED)
find_package(CURL REQUIRED)
ENDIF()

option(BUILD_EXAMPLES "Build example applications" OFF)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)

Expand All @@ -11,4 +19,4 @@ if(BUILD_EXAMPLES)
add_subdirectory(documentation)
endif()

set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT oai)
set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT oai)

0 comments on commit b008194

Please sign in to comment.