# creates the install rule for the binary
install(TARGETS ${TARGET} DESTINATION bin)
+
+
+# create a library from the same files to feed into the linker for tools
+add_library(lib_for_tools STATIC ${SOURCES})
+
+# now create an executable for tools/feed_packet_data that depends on lib_for_tools
+set(feed_packet_data_SOURCES tools/feed_packet_data.cpp)
+add_executable(feed_packet_data ${feed_packet_data_SOURCES})
+target_link_libraries(
+ feed_packet_data
+ lib_for_tools
+ ${Boost_LIBRARIES}
+ ${I2NCOMMON_LIBRARIES}
+)
+# no install! install(TARGETS feed_packet_data DESTINATION bin)