Merge pull request #18 from cthunter01/development
Changing https to http in ThrustCurveAPI to work around issue in Wind…
This commit is contained in:
commit
4e9bcb9158
@ -2,12 +2,6 @@ cmake_minimum_required(VERSION 3.16)
|
|||||||
|
|
||||||
project(qtrocket VERSION 0.1 LANGUAGES CXX)
|
project(qtrocket VERSION 0.1 LANGUAGES CXX)
|
||||||
|
|
||||||
set(CMAKE_AUTOUIC ON)
|
|
||||||
set(CMAKE_AUTOMOC ON)
|
|
||||||
set(CMAKE_AUTORCC ON)
|
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 20)
|
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
||||||
|
|
||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
|
|
||||||
@ -21,14 +15,33 @@ FetchContent_MakeAvailable(fmt)
|
|||||||
FetchContent_Declare(jsoncpp
|
FetchContent_Declare(jsoncpp
|
||||||
GIT_REPOSITORY https://github.com/open-source-parsers/jsoncpp
|
GIT_REPOSITORY https://github.com/open-source-parsers/jsoncpp
|
||||||
GIT_TAG 1.9.5)
|
GIT_TAG 1.9.5)
|
||||||
|
set(JSONCPP_WITH_TESTS OFF)
|
||||||
|
set(JSONCPP_WITH_EXAMPLE OFF)
|
||||||
|
set(JSONCPP_WITH_PKGCONFIG_SUPPORT OFF)
|
||||||
|
set(JSONCPP_BUILD_SHARED_LIBS OFF)
|
||||||
|
set(JSONCPP_BUILD_OBJECT_LIBS OFF)
|
||||||
|
set(JSONCPP_BUILD_STATIC_LIBS ON)
|
||||||
FetchContent_MakeAvailable(jsoncpp)
|
FetchContent_MakeAvailable(jsoncpp)
|
||||||
|
|
||||||
# curl dependency
|
# curl dependency
|
||||||
FetchContent_Declare(CURL
|
FetchContent_Declare(CURL
|
||||||
GIT_REPOSITORY https://github.com/curl/curl
|
GIT_REPOSITORY https://github.com/curl/curl
|
||||||
GIT_TAG curl-8_0_1)
|
GIT_TAG curl-8_0_1)
|
||||||
|
set(BUILD_CURL_EXE OFF)
|
||||||
|
set(BUILD_SHARED_LIBS OFF)
|
||||||
|
set(HTTP_ONLY ON)
|
||||||
|
set(SSL_ENABLED ON)
|
||||||
FetchContent_MakeAvailable(CURL)
|
FetchContent_MakeAvailable(CURL)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
set(CMAKE_AUTOMOC ON)
|
||||||
|
set(CMAKE_AUTORCC ON)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(CMAKE_PREFIX_PATH $ENV{QTDIR})
|
set(CMAKE_PREFIX_PATH $ENV{QTDIR})
|
||||||
include_directories("C:\\boost\\boost_1_82_0\\")
|
include_directories("C:\\boost\\boost_1_82_0\\")
|
||||||
|
@ -14,7 +14,7 @@ namespace utils
|
|||||||
{
|
{
|
||||||
|
|
||||||
ThrustCurveAPI::ThrustCurveAPI()
|
ThrustCurveAPI::ThrustCurveAPI()
|
||||||
: hostname("https://www.thrustcurve.org/"),
|
: hostname("http://www.thrustcurve.org/"),
|
||||||
curlConnection()
|
curlConnection()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user