File tree Expand file tree Collapse file tree 5 files changed +28
-0
lines changed
Expand file tree Collapse file tree 5 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -323,3 +323,23 @@ if(GRAPHQL_BUILD_TESTS)
323323 add_dependencies (validationgraphql update_samples)
324324 endif ()
325325endif ()
326+
327+ if (GRAPHQL_BUILD_CLIENTGEN)
328+ # todayclient
329+ add_library (todayclient STATIC
330+ client/QueryClient.cpp
331+ client/MutateClient.cpp
332+ client/SubscribeClient.cpp)
333+ target_link_libraries (todayclient PUBLIC
334+ graphqlpeg
335+ graphqlresponse)
336+ target_include_directories (todayclient PUBLIC
337+ ${CMAKE_CURRENT_SOURCE_DIR} /../include
338+ ${CMAKE_CURRENT_SOURCE_DIR} /../PEGTL/include
339+ client)
340+
341+ if (GRAPHQL_UPDATE_SAMPLES)
342+ # wait for the sample update to complete
343+ add_dependencies (todayclient update_client_samples)
344+ endif ()
345+ endif ()
Original file line number Diff line number Diff line change 1616#include " graphqlservice/GraphQLParse.h"
1717#include " graphqlservice/GraphQLResponse.h"
1818
19+ #include " graphqlservice/internal/Version.h"
20+
1921// Check if the library version is compatible with clientgen 3.6.0
2022static_assert (graphql::internal::MajorVersion == 3 , " regenerate with clientgen: major version mismatch" );
2123static_assert (graphql::internal::MinorVersion == 6 , " regenerate with clientgen: minor version mismatch" );
Original file line number Diff line number Diff line change 1616#include " graphqlservice/GraphQLParse.h"
1717#include " graphqlservice/GraphQLResponse.h"
1818
19+ #include " graphqlservice/internal/Version.h"
20+
1921// Check if the library version is compatible with clientgen 3.6.0
2022static_assert (graphql::internal::MajorVersion == 3 , " regenerate with clientgen: major version mismatch" );
2123static_assert (graphql::internal::MinorVersion == 6 , " regenerate with clientgen: minor version mismatch" );
Original file line number Diff line number Diff line change 1616#include " graphqlservice/GraphQLParse.h"
1717#include " graphqlservice/GraphQLResponse.h"
1818
19+ #include " graphqlservice/internal/Version.h"
20+
1921// Check if the library version is compatible with clientgen 3.6.0
2022static_assert (graphql::internal::MajorVersion == 3 , " regenerate with clientgen: major version mismatch" );
2123static_assert (graphql::internal::MinorVersion == 6 , " regenerate with clientgen: minor version mismatch" );
Original file line number Diff line number Diff line change @@ -146,6 +146,8 @@ bool Generator::outputHeader() const noexcept
146146#include "graphqlservice/GraphQLParse.h"
147147#include "graphqlservice/GraphQLResponse.h"
148148
149+ #include "graphqlservice/internal/Version.h"
150+
149151// Check if the library version is compatible with clientgen )cpp"
150152 << graphql::internal::MajorVersion << R"cpp( .)cpp" << graphql::internal::MinorVersion
151153 << R"cpp( .0
You can’t perform that action at this time.
0 commit comments