Skip to content

Commit

Permalink
Set c++ standard and remove hpp files from target
Browse files Browse the repository at this point in the history
  • Loading branch information
Kicer86 committed Nov 22, 2023
1 parent 0b09fe4 commit 86d8f0e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ else()
pkg_check_modules(JSONCPP REQUIRED jsoncpp)
endif()

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

include(GenerateExportHeader)

option(GitHubAPI_QtBackend "Qt backend for GitHubApi" OFF)
Expand All @@ -28,13 +31,8 @@ if(GitHubAPI_Tests)
endif()

add_library(github_api
include/github_api/iconnection.hpp
include/github_api/igithub_api.hpp
include/github_api/request.hpp
src/base_connection.cpp
src/base_connection.hpp
src/header_utils.cpp
src/header_utils.hpp
src/request.cpp
)

Expand Down

0 comments on commit 86d8f0e

Please sign in to comment.