CMakeLists.txt 874 Bytes
Newer Older
1 2 3 4 5 6 7
cmake_minimum_required (VERSION 2.8.11)
project (PRRT)

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)

8 9
find_package (Threads)

10
add_subdirectory(prrt)
11
add_library(PRRT prrt/socket.c prrt/block.c prrt/block.h prrt/packet.c prrt/packet.h prrt/feedback_receiver.c prrt/feedback_receiver.h prrt/data_transmitter.c prrt/data_transmitter.h)
12
add_library(UTIL util/common.c util/common.h util/list.c util/list.h)
13 14 15

add_executable(sender sender.c)
add_executable(receiver receiver.c)
16
add_executable(tester tester.c)
17 18 19
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})