cmake_minimum_required(VERSION 2.6) project(human-gazebo-control) find_package(YARP) yarp_idl_to_dir("../../human-dynamics-estimation/human-state-provider/thrifts/HumanState.thrift" "${CMAKE_CURRENT_BINARY_DIR}/autogenerated" THRIFT_STATE_SOURCES THRIFT_STATE_HEADERS THRIFT_STATE_INCLUDE_DIRS) yarp_idl_to_dir("../../human-dynamics-estimation/human-state-provider/thrifts/HumanStateProviderService.thrift" "${CMAKE_CURRENT_BINARY_DIR}/autogenerated" THRIFT_SERVICE_SOURCES THRIFT_SERVICE_HEADERS THRIFT_SERVICE_INCLUDE_DIRS) set(human-gazebo-control_headers include/HumanGazeboControlModule.h) set(human-gazebo-control_sources src/main.cpp src/HumanGazeboControlModule.cpp) include_directories(${YARP_INCLUDE_DIRS} ${THRIFT_FT_INCLUDE_DIRS} ${THRIFT_STATE_INCLUDE_DIRS} ${THRIFT_SERVICE_INCLUDE_DIRS} ${THRIFT_DYNAMICS_INCLUDE_DIRS} -I include/) add_executable(human-gazebo-control ${human-gazebo-control_headers} ${human-gazebo-control_sources} ${THRIFT_FT_HEADERS} ${THRIFT_FT_SOURCES} ${THRIFT_STATE_HEADERS} ${THRIFT_STATE_SOURCES} ${THRIFT_SERVICE_HEADERS} ${THRIFT_SERVICE_SOURCES} ${THRIFT_DYNAMICS_HEADERS} ${THRIFT_DYNAMICS_SOURCES}) target_link_libraries(human-gazebo-control ${YARP_LIBRARIES})