Commit 1be7c2a0 authored by Andreas Schmidt's avatar Andreas Schmidt

Update CMakeLists file to include UTILS.

parent fbfd14b0
......@@ -5,6 +5,8 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
find_package (Threads)
add_subdirectory(prrt)
add_library(PRRT prrt/socket.c prrt/block.c prrt/block.h prrt/packet.c prrt/packet.h)
add_library(UTIL util/common.c util/common.h)
......@@ -12,9 +14,6 @@ add_library(UTIL util/common.c util/common.h)
add_executable(sender sender.c)
add_executable(receiver receiver.c)
add_executable(tester tester.c)
target_link_libraries(sender LINK_PUBLIC PRRT)
target_link_libraries(receiver LINK_PUBLIC PRRT)
target_link_libraries(tester LINK_PUBLIC PRRT)
target_link_libraries(sender LINK_PUBLIC UTIL)
target_link_libraries(receiver LINK_PUBLIC UTIL)
target_link_libraries(tester LINK_PUBLIC UTIL)
\ No newline at end of file
target_link_libraries(sender LINK_PUBLIC PRRT UTIL ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(receiver LINK_PUBLIC PRRT UTIL ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(tester LINK_PUBLIC PRRT UTIL ${CMAKE_THREAD_LIBS_INIT})
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment