@@ -207,52 +207,52 @@ if(GRAPHQL_UPDATE_SAMPLES)
207
207
DEPENDS updated_introspection )
208
208
endif ()
209
209
210
- # graphqlservice_nointrospection
211
- add_library (graphqlservice_nointrospection
210
+ # graphqlservice
211
+ add_library (graphqlservice
212
212
GraphQLService.cpp
213
213
GraphQLSchema.cpp
214
214
Validation.cpp )
215
- add_library (cppgraphqlgen::graphqlservice_nointrospection ALIAS graphqlservice_nointrospection )
216
- target_link_libraries (graphqlservice_nointrospection PUBLIC
215
+ add_library (cppgraphqlgen::graphqlservice ALIAS graphqlservice )
216
+ target_link_libraries (graphqlservice PUBLIC
217
217
graphqlpeg
218
218
graphqlresponse
219
219
Threads::Threads )
220
220
221
221
if (GRAPHQL_UPDATE_SAMPLES )
222
222
# Even though this target doesn't build IntrospectionSchema.cpp, it still
223
223
# depends on IntrospectionSchema.h for some enum definitions.
224
- add_dependencies (graphqlservice_nointrospection update_introspection )
224
+ add_dependencies (graphqlservice update_introspection )
225
225
endif ()
226
226
227
227
if (GRAPHQL_UPDATE_VERSION )
228
- update_version_rc (graphqlservice_nointrospection )
228
+ update_version_rc (graphqlservice )
229
229
endif ()
230
230
231
231
if (WIN32 AND BUILD_SHARED_LIBS )
232
- target_compile_definitions (graphqlservice_nointrospection
232
+ target_compile_definitions (graphqlservice
233
233
PUBLIC GRAPHQL_DLLEXPORTS
234
234
PRIVATE IMPL_GRAPHQLSERVICE_DLL )
235
235
236
- add_version_rc (graphqlservice_nointrospection )
236
+ add_version_rc (graphqlservice )
237
237
endif ()
238
238
239
- # graphqlservice
240
- add_library (graphqlservice
239
+ # graphqlintrospection
240
+ add_library (graphqlintrospection
241
241
Introspection.cpp
242
242
IntrospectionSchema.cpp )
243
- add_library (cppgraphqlgen::graphqlservice ALIAS graphqlservice )
244
- target_link_libraries (graphqlservice PUBLIC graphqlservice_nointrospection )
243
+ add_library (cppgraphqlgen::graphqlintrospection ALIAS graphqlintrospection )
244
+ target_link_libraries (graphqlintrospection PUBLIC graphqlservice )
245
245
246
246
if (GRAPHQL_UPDATE_VERSION )
247
- update_version_rc (graphqlservice )
247
+ update_version_rc (graphqlintrospection )
248
248
endif ()
249
249
250
250
if (WIN32 AND BUILD_SHARED_LIBS )
251
- target_compile_definitions (graphqlservice
251
+ target_compile_definitions (graphqlintrospection
252
252
PUBLIC GRAPHQL_DLLEXPORTS
253
253
PRIVATE IMPL_GRAPHQLINTROSPECTION_DLL )
254
254
255
- add_version_rc (graphqlservice )
255
+ add_version_rc (graphqlintrospection )
256
256
endif ()
257
257
258
258
# RapidJSON is the only option for JSON serialization used in this project, but if you want
@@ -289,7 +289,7 @@ endif()
289
289
if (BUILD_GRAPHQLJSON )
290
290
option (GRAPHQL_BUILD_TESTS "Build the tests and sample schema library." ON )
291
291
292
- target_link_libraries (graphqljson PUBLIC graphqlservice )
292
+ target_link_libraries (graphqljson PUBLIC graphqlintrospection )
293
293
294
294
install (TARGETS graphqljson
295
295
EXPORT cppgraphqlgen-targets
@@ -298,16 +298,16 @@ if(BUILD_GRAPHQLJSON)
298
298
LIBRARY DESTINATION lib )
299
299
install (FILES ${CMAKE_CURRENT_SOURCE_DIR} /../include/graphqlservice/JSONResponse.h
300
300
CONFIGURATIONS ${GRAPHQL_INSTALL_CONFIGURATIONS}
301
- DESTINATION ${GRAPHQL_INSTALL_INCLUDE_DIR} /graphqlservice )
301
+ DESTINATION ${GRAPHQL_INSTALL_INCLUDE_DIR} /graphqlintrospection )
302
302
else ()
303
303
set (GRAPHQL_BUILD_TESTS OFF CACHE BOOL "GRAPHQL_BUILD_TESTS depends on BUILD_GRAPHQLJSON" FORCE )
304
304
endif ()
305
305
306
306
install (TARGETS
307
307
graphqlpeg
308
308
graphqlresponse
309
- graphqlservice_nointrospection
310
309
graphqlservice
310
+ graphqlintrospection
311
311
EXPORT cppgraphqlgen-targets
312
312
RUNTIME DESTINATION bin
313
313
ARCHIVE DESTINATION lib
@@ -321,7 +321,7 @@ install(FILES
321
321
${CMAKE_CURRENT_SOURCE_DIR} /../include/graphqlservice/GraphQLGrammar.h
322
322
${CMAKE_CURRENT_SOURCE_DIR} /../include/graphqlservice/GraphQLTree.h
323
323
CONFIGURATIONS ${GRAPHQL_INSTALL_CONFIGURATIONS}
324
- DESTINATION ${GRAPHQL_INSTALL_INCLUDE_DIR} /graphqlservice )
324
+ DESTINATION ${GRAPHQL_INSTALL_INCLUDE_DIR} /graphqlintrospection )
325
325
326
326
install (FILES
327
327
${CMAKE_CURRENT_SOURCE_DIR} /../include/graphqlservice/internal/SortedMap.h
@@ -333,7 +333,7 @@ install(FILES
333
333
${CMAKE_CURRENT_SOURCE_DIR} /../include/graphqlservice/introspection/Introspection.h
334
334
${CMAKE_CURRENT_SOURCE_DIR} /../include/graphqlservice/introspection/IntrospectionSchema.h
335
335
CONFIGURATIONS ${GRAPHQL_INSTALL_CONFIGURATIONS}
336
- DESTINATION ${GRAPHQL_INSTALL_INCLUDE_DIR} /graphqlservice /introspection )
336
+ DESTINATION ${GRAPHQL_INSTALL_INCLUDE_DIR} /graphqlintrospection /introspection )
337
337
338
338
install (EXPORT cppgraphqlgen-targets
339
339
NAMESPACE cppgraphqlgen::
0 commit comments