CMakeLists.txt 443 Bytes
Newer Older
wangdawei's avatar
wangdawei committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
## Compile as C++11, supported in ROS Kinetic and newer
add_compile_options(-std=c++11)

find_package(Eigen3)

## Declare a C++ library
add_library(jf_inputs
  inputs.cpp
)

target_include_directories(jf_inputs PUBLIC
  ${EIGEN3_INCLUDE_DIR}
)

target_link_libraries(jf_inputs PUBLIC
  ${EIGEN3_LIBRARIES}
)

if (CATKIN_ENABLED)
    install(
        TARGETS jf_inputs
        LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
    )
endif()