Skip to content

Commit 955925b

Browse files
committed
Move graphqljson from sample todaygraphql to tests
1 parent b33b285 commit 955925b

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

CMakeLists.txt

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -117,22 +117,22 @@ if(BUILD_TESTS OR UPDATE_SAMPLES)
117117
DEPENDS TodaySchema.cpp
118118
)
119119

120-
if(BUILD_TESTS)
121-
add_library(todaygraphql
122-
Today.cpp
123-
TodaySchema.cpp)
124-
target_link_libraries(todaygraphql PUBLIC
125-
graphqlservice
126-
graphqljson)
127-
target_include_directories(todaygraphql PUBLIC
128-
${CMAKE_CURRENT_SOURCE_DIR}/include
129-
${CMAKE_CURRENT_BINARY_DIR}/include)
130-
cppgraphqlgen_target_set_cxx_standard(todaygraphql)
120+
add_library(todaygraphql
121+
Today.cpp
122+
TodaySchema.cpp)
123+
target_link_libraries(todaygraphql PUBLIC
124+
graphqlservice)
125+
target_include_directories(todaygraphql PUBLIC
126+
${CMAKE_CURRENT_SOURCE_DIR}/include
127+
${CMAKE_CURRENT_BINARY_DIR}/include)
128+
cppgraphqlgen_target_set_cxx_standard(todaygraphql)
131129

130+
if(BUILD_TESTS)
132131
add_executable(test_today
133132
test_today.cpp)
134133
target_link_libraries(test_today PRIVATE
135-
todaygraphql)
134+
todaygraphql
135+
graphqljson)
136136
cppgraphqlgen_target_set_cxx_standard(test_today)
137137

138138
enable_testing()
@@ -142,6 +142,7 @@ if(BUILD_TESTS OR UPDATE_SAMPLES)
142142
tests.cpp)
143143
target_link_libraries(tests PRIVATE
144144
todaygraphql
145+
graphqljson
145146
GTest::GTest
146147
GTest::Main)
147148
cppgraphqlgen_target_set_cxx_standard(tests)

0 commit comments

Comments
 (0)