Problem: test utilities are in headers and recompiled for every test

Solution: move test utilities to separate testutil library
This commit is contained in:
Simon Giesecke
2019-03-23 06:27:12 -04:00
parent cbd4157638
commit 347708bcf2
12 changed files with 1774 additions and 1446 deletions

View File

@@ -35,7 +35,7 @@ foreach(test ${unittests})
link_directories(${test} PRIVATE "${ZeroMQ_SOURCE_DIR}/../lib")
endif()
target_link_libraries(${test} libzmq-static ${OPTIONAL_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} unity)
target_link_libraries(${test} testutil-static)
if(RT_LIBRARY)
target_link_libraries(${test} ${RT_LIBRARY})