2022-02-24 00:00:53 +08:00
|
|
|
# Helpful code for tests and other utilities
|
|
|
|
set(misc_tools_SOURCES
|
|
|
|
misc_tools.c
|
|
|
|
misc_tools.h)
|
2022-10-04 21:13:16 +08:00
|
|
|
add_library(misc_tools STATIC ${misc_tools_SOURCES})
|
2022-02-24 00:00:53 +08:00
|
|
|
target_link_modules(misc_tools toxcore)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# :: Test programs
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2023-12-21 07:41:22 +08:00
|
|
|
if(BUILD_MISC_TESTS)
|
2022-02-24 00:00:53 +08:00
|
|
|
add_executable(Messenger_test Messenger_test.c)
|
|
|
|
target_link_modules(Messenger_test toxcore misc_tools)
|
|
|
|
endif()
|