cmake_minimum_required(VERSION 2.6)

# find YARP
find_package(YARP REQUIRED)

# add YARP include directories
include_directories(${YARP_INCLUDE_DIRS})

# set up our program
add_executable(BenchmarkPublisher BenchmarkPublisher.C)
add_executable(BenchmarkSubscriber BenchmarkSubscriber.C)
add_executable(BenchmarkSingleProcess BenchmarkSingleProcess.C)

# link with YARP libraries
target_link_libraries(BenchmarkPublisher ${YARP_LIBRARIES})
target_link_libraries(BenchmarkSubscriber ${YARP_LIBRARIES})
target_link_libraries(BenchmarkSingleProcess ${YARP_LIBRARIES})
