Commit 2544c8b0 authored by Andreas Schmidt's avatar Andreas Schmidt
Browse files

Improve project structure.

parent c86c02b2
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
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_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

enable_testing()
@@ -11,11 +11,11 @@ find_package (Threads)

include_directories(${CMAKE_CURRENT_SOURCE_DIR})

add_subdirectory(prrt)
add_subdirectory(util)
add_subdirectory(src/prrt)
add_subdirectory(src/util)
add_subdirectory(tests)

add_executable(sender sender.c)
add_executable(receiver receiver.c)
add_executable(sender src/sender.c)
add_executable(receiver src/receiver.c)
target_link_libraries(sender LINK_PUBLIC PRRT UTIL ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(receiver LINK_PUBLIC PRRT UTIL ${CMAKE_THREAD_LIBS_INIT})
 No newline at end of file
+0 −0

File moved.

+0 −0

File moved.

+4 −2
Original line number Diff line number Diff line
#include <string.h>
#include <defines.h>
#include <prrt/vdmcode/block_code.h>
#include <src/defines.h>
#include <src/prrt/vdmcode/block_code.h>
#include <stdlib.h>
#include <src/util/list.h>
#include "block.h"

void clear_list(gf *const *src, uint8_t k) {
+3 −3
Original line number Diff line number Diff line
#ifndef PRRT_BLOCK_H
#define PRRT_BLOCK_H

#include <prrt/coding_params.h>
#include <prrt/packet.h>
#include <util/list.h>
#include <src/prrt/coding_params.h>
#include <src/prrt/packet.h>
#include <src/util/list.h>

typedef struct {
    uint32_t data_count;
Loading