2019-09-29 06:48:25 -04:00
|
|
|
|
2019-09-29 13:51:00 -04:00
|
|
|
set(validator_lib_test_SRCS
|
|
|
|
base32-validator.cpp
|
2019-09-29 13:52:33 -04:00
|
|
|
name-validator.cpp
|
2019-09-30 15:05:49 -04:00
|
|
|
unsigned-long-validator.cpp
|
|
|
|
unsigned-long-parsing.cpp
|
2019-09-29 13:51:00 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Using macros to take care of boilerplate test setup confuses Automoc a bit
|
|
|
|
# It still works without registering the macro, but this way the mistaken
|
|
|
|
# warnings are suppressed.
|
|
|
|
#
|
|
|
|
# (The Automoc warning mistakenly hints at removing a necessary #include)
|
|
|
|
#
|
|
|
|
list(APPEND CMAKE_AUTOMOC_MACRO_NAMES "DEFINE_VALIDATOR_TEST")
|
2019-09-29 06:48:25 -04:00
|
|
|
|
|
|
|
ecm_add_tests(
|
|
|
|
${validator_lib_test_SRCS}
|
2019-09-29 13:51:00 -04:00
|
|
|
LINK_LIBRARIES
|
|
|
|
Qt5::Core Qt5::Gui Qt5::Test
|
|
|
|
validator_lib
|
2019-09-29 06:48:25 -04:00
|
|
|
NAME_PREFIX validators-
|
|
|
|
)
|