CMakeLists.txt 451 Bytes
Newer Older
Svetlana's avatar
Svetlana committed
1 2 3 4 5 6 7 8 9 10 11 12
cmake_minimum_required(VERSION 3.5)
project (ROSCamera)
set (CXX_STANDARD_REQUIRED 14)

find_package(roscpp REQUIRED)
find_package(std_msgs REQUIRED)

add_executable(camera src/main.cpp src/torcsclient.cpp)

set_property(TARGET camera PROPERTY CXX_STANDARD 14)
target_link_libraries(camera ${roscpp_LIBRARIES} ${std_msgs_LIBRARIES})
target_include_directories(camera PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${roscpp_INCLUDE_DIRS} ${std_msgs_INCLUDE_DIRS})