Skip to content

Commit

Permalink
Fix examples build (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kicer86 authored Nov 25, 2023
1 parent d0e6975 commit 4eebaf8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
cmake_minimum_required(VERSION 3.10)
project(GitHubApiExample)

set(GitHubAPI_QtBackend ON)
set(GitHubAPI_CurlBackend ON)
add_subdirectory(.. github_api_root) #include directory with github_api

find_package(Qt6 COMPONENTS Network Core)
if (NOT Qt6_FOUND)
find_package(Qt5 REQUIRED COMPONENTS Network Core)
endif()

set(GitHubAPI_UseQt6 ${Qt6_FOUND})
set(GitHubAPI_QtBackend ON)
set(GitHubAPI_CurlBackend ON)
add_subdirectory(.. github_api_root) #include directory with github_api

add_executable(qt_example qt_example.cpp)
add_executable(curl_example curl_example.cpp)

Expand Down

0 comments on commit 4eebaf8

Please sign in to comment.