CMakeLists.txt 645 Bytes
Newer Older
1
2
3
cmake_minimum_required (VERSION 2.8.11)
project (PRRT)

Andreas Schmidt's avatar
Andreas Schmidt committed
4
5
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build)
6
7
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

8
enable_testing()
9

10
find_package (Threads)
11

12
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
13

Andreas Schmidt's avatar
Andreas Schmidt committed
14
15
add_subdirectory(src/prrt)
add_subdirectory(src/util)
16
17
add_subdirectory(tests)

Andreas Schmidt's avatar
Andreas Schmidt committed
18
19
add_executable(sender src/sender.c)
add_executable(receiver src/receiver.c)
20
target_link_libraries(sender LINK_PUBLIC PRRT UTIL ${CMAKE_THREAD_LIBS_INIT})
Andreas Schmidt's avatar
Andreas Schmidt committed
21
target_link_libraries(receiver LINK_PUBLIC PRRT UTIL ${CMAKE_THREAD_LIBS_INIT})