CMakeLists.txt 1.92 KB
Newer Older
1
set (PRRT_SOURCES ../defines.h
Andreas Schmidt's avatar
Andreas Schmidt committed
2
        bbr.c bbr.h
3 4 5
        clock.c clock.h
        receiver.c receiver.h
        socket.c socket.h
Andreas Schmidt's avatar
Andreas Schmidt committed
6
        timer.c timer.h
7
        processes/dataReceiver.c processes/dataReceiver.h
8
        processes/dataTransmitter.c processes/dataTransmitter.h
9
        stores/dataPacketStore.c stores/dataPacketStore.h
10 11
        stores/deliveredPacketTable.c stores/deliveredPacketTable.h
        stores/inFlightPacketStore.c stores/inFlightPacketStore.h
Andreas Schmidt's avatar
Andreas Schmidt committed
12 13
        stores/pace.c stores/pace.h
        stores/paceFilter.c stores/paceFilter.h
14
        stores/packetTimeoutTable.c stores/packetTimeoutTable.h
Andreas Schmidt's avatar
Andreas Schmidt committed
15
        stores/packetDeliveryStore.c stores/packetDeliveryStore.h
16 17
        stores/receptionTable.c stores/receptionTable.h
        stores/repairBlockStore.c stores/repairBlockStore.h
Andreas Schmidt's avatar
Andreas Schmidt committed
18 19 20 21
        types/applicationConstraints.c types/applicationConstraints.h
        types/block.c types/block.h
        types/codingParams.c types/codingParams.h
        types/channelStateInformation.c types/channelStateInformation.h
22 23
        types/lossStatistics.c types/lossStatistics.h
        types/packet.c types/packet.h
Andreas Schmidt's avatar
Andreas Schmidt committed
24
        types/packetTimeout.c types/packetTimeout.h
Andreas Schmidt's avatar
Andreas Schmidt committed
25
        vdmcode/block_code.c vdmcode/block_code.h types/packetTracking.c types/packetTracking.h types/rateSample.c types/rateSample.h)
26

27 28 29 30
if (XLAP)
    set(PRRT_SOURCES ${PRRT_SOURCES} ../xlap/xlap.c ../xlap/xlap.h)
endif()

Andreas Schmidt's avatar
Andreas Schmidt committed
31 32
add_library(prrt_obj OBJECT ${PRRT_SOURCES})
set_property(TARGET prrt_obj PROPERTY POSITION_INDEPENDENT_CODE 1)
33

Andreas Schmidt's avatar
Andreas Schmidt committed
34 35 36 37 38 39 40 41 42 43 44 45 46

add_library(prrt_static STATIC $<TARGET_OBJECTS:prrt_obj>)
target_link_libraries(prrt_static rt)
set_target_properties(prrt_static PROPERTIES OUTPUT_NAME "prrt")

add_library(prrt_shared SHARED $<TARGET_OBJECTS:prrt_obj>)
target_link_libraries(prrt_shared rt)
set_target_properties(prrt_shared PROPERTIES OUTPUT_NAME "prrt")

install(TARGETS prrt_static prrt_shared
        RUNTIME DESTINATION bin
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib)