@@ -22,7 +22,7 @@ endif()
2222#------------------------------------------------------------------------------
2323# Project options.
2424#------------------------------------------------------------------------------
25- option ( with-test "Build test ." ON )
25+ option ( with-tests "Build tests ." ON )
2626option ( with-console "Build console." ON )
2727
2828#------------------------------------------------------------------------------
@@ -187,15 +187,15 @@ set_target_properties( libbitcoin-server
187187)
188188
189189#------------------------------------------------------------------------------
190- # libbitcoin-server-tests tests
190+ # libbitcoin-server-test tests
191191#------------------------------------------------------------------------------
192- if ( with-test )
193- add_executable ( libbitcoin-server-tests )
192+ if ( with-tests )
193+ add_executable ( libbitcoin-server-test )
194194
195195 enable_testing ()
196196
197- add_test ( NAME libbitcoin-server-tests
198- COMMAND libbitcoin-server-tests
197+ add_test ( NAME libbitcoin-server-test
198+ COMMAND libbitcoin-server-test
199199 --run_test=*
200200 --log_level=warning
201201 --show_progress=no
@@ -204,12 +204,12 @@ if ( with-test )
204204 --build_info=yes
205205 )
206206
207- target_compile_features ( libbitcoin-server-tests
207+ target_compile_features ( libbitcoin-server-test
208208 PUBLIC
209209 cxx_std_20
210210 )
211211
212- target_compile_options ( libbitcoin-server-tests
212+ target_compile_options ( libbitcoin-server-test
213213 PRIVATE
214214 -Wall
215215 -Wextra
@@ -225,23 +225,23 @@ if ( with-test )
225225 -fstack-protector-all
226226 )
227227
228- file ( GLOB_RECURSE libbitcoin_server_tests_SOURCES CONFIGURE_DEPENDS
228+ file ( GLOB_RECURSE libbitcoin_server_test_SOURCES CONFIGURE_DEPENDS
229229 "${CMAKE_CURRENT_SOURCE_DIR} /../../test/*.c"
230230 "${CMAKE_CURRENT_SOURCE_DIR} /../../test/*.cpp"
231231 )
232232
233- target_sources ( libbitcoin-server-tests
233+ target_sources ( libbitcoin-server-test
234234 PRIVATE
235- ${libbitcoin_server_tests_SOURCES }
235+ ${libbitcoin_server_test_SOURCES }
236236 )
237237
238- target_link_libraries ( libbitcoin-server-tests
238+ target_link_libraries ( libbitcoin-server-test
239239 PRIVATE
240240 Boost::unit_test_framework
241241 bitcoin::server
242242 )
243243
244- set_target_properties ( libbitcoin-server-tests
244+ set_target_properties ( libbitcoin-server-test
245245 PROPERTIES
246246 VERSION ${PROJECT_VERSION}
247247 SOVERSION ${PROJECT_VERSION_MAJOR}
0 commit comments