Needed by newer binutils, they are more strict.
${TARGET}
${Boost_LIBRARIES}
${I2NCOMMON_LIBRARIES}
+ pthread
)
# creates the install rule for the binary
# create a library from the same files to feed into the linker for tools
add_library(lib_for_tools STATIC ${SOURCES})
+target_link_libraries(lib_for_tools pthread)
# now create an executable for tools/feed_packet_data that depends on lib_for_tools
set(feed_packet_data_SOURCES tools/pcap.cpp tools/feed_packet_data.cpp)
test_configurationcommandline
${I2NCOMMON_LIBRARIES}
${Boost_LIBRARIES}
+ pthread
)
# cmake: invocation via "make test"
test_configurationfile
${I2NCOMMON_LIBRARIES}
${Boost_LIBRARIES}
+ pthread
)
# cmake: invocation via "make test"
test_configurationoptions
${I2NCOMMON_LIBRARIES}
${Boost_LIBRARIES}
+ pthread
)
# cmake: invocation via "make test"
test_dns
${I2NCOMMON_LIBRARIES}
${Boost_LIBRARIES}
+ pthread
)
# cmake: invocation via "make test"
test_hoststatus
${I2NCOMMON_LIBRARIES}
${Boost_LIBRARIES}
+ pthread
)
# cmake: invocation via "make test"
test_icmppacket
${I2NCOMMON_LIBRARIES}
${Boost_LIBRARIES}
+ pthread
)
# cmake: invocation via "make test"
test_icmpv4header
${I2NCOMMON_LIBRARIES}
${Boost_LIBRARIES}
+ pthread
)
# cmake: invocation via "make test"
test_icmpv6header
${I2NCOMMON_LIBRARIES}
${Boost_LIBRARIES}
+ pthread
)
# cmake: invocation via "make test"
test_ipv4header
${I2NCOMMON_LIBRARIES}
${Boost_LIBRARIES}
+ pthread
)
# cmake: invocation via "make test"
test_ipv6header
${I2NCOMMON_LIBRARIES}
${Boost_LIBRARIES}
+ pthread
)
# cmake: invocation via "make test"
test_linkstatus
${I2NCOMMON_LIBRARIES}
${Boost_LIBRARIES}
+ pthread
)
# cmake: invocation via "make test"
test_loglevel
${I2NCOMMON_LIBRARIES}
${Boost_LIBRARIES}
+ pthread
)
# cmake: invocation via "make test"
test_logoutput
${I2NCOMMON_LIBRARIES}
${Boost_LIBRARIES}
+ pthread
)
# cmake: invocation via "make test"
test_messagepayload
${I2NCOMMON_LIBRARIES}
${Boost_LIBRARIES}
+ pthread
)
# cmake: invocation via "make test"
test_pingprotocol
${I2NCOMMON_LIBRARIES}
${Boost_LIBRARIES}
+ pthread
)
# cmake: invocation via "make test"
test_tcpheader
${I2NCOMMON_LIBRARIES}
${Boost_LIBRARIES}
+ pthread
)
# cmake: invocation via "make test"