<commit_before>cmake_minimum_required(VERSION 2.8.8)

add_compile_options(-std=c++11)
project(nav_lib)

#include_directories(include ${catkin_INCLUDE_DIRS})

find_package(catkin REQUIRED COMPONENTS roscpp)
include_directories(${catkin_INCLUDE_DIRS} include/nav_lib/)

if(NOT catkin_FOUND)
  message(FATAL_ERROR "find_package(catkin) failed. catkin was neither found in the workspace nor in the CMAKE_PREFIX_PATH. One reason may be that no ROS setup.sh was sourced before.")
endif()

#file(GLOB include/YamlLib/*.hpp)
#file(GLOB src/*.cpp)

add_library(nav_lib src/Marker.cpp src/NoGoLine.cpp src/YamlParser.cpp src/YamlWriter.cpp src/MapConfig.cpp src/Nav.cpp)

target_link_libraries(nav_lib ${catkin_LIBRARIES})

catkin_package(
   INCLUDE_DIRS include
   LIBRARIES ${PROJECT_NAME}
   CATKIN_DEPENDS roscpp)

#include_directories(include/YamlLib/)<commit_msg>Missing yaml lib in 16.04<commit_after>cmake_minimum_required(VERSION 2.8.8)

add_compile_options(-std=c++11)
project(nav_lib)

#include_directories(include ${catkin_INCLUDE_DIRS})

find_package(catkin REQUIRED COMPONENTS roscpp)
include_directories(${catkin_INCLUDE_DIRS} include/nav_lib/)

if(NOT catkin_FOUND)
  message(FATAL_ERROR "find_package(catkin) failed. catkin was neither found in the workspace nor in the CMAKE_PREFIX_PATH. One reason may be that no ROS setup.sh was sourced before.")
endif()

#file(GLOB include/YamlLib/*.hpp)
#file(GLOB src/*.cpp)

add_library(nav_lib src/Marker.cpp src/NoGoLine.cpp src/YamlParser.cpp src/YamlWriter.cpp src/MapConfig.cpp src/Nav.cpp)

target_link_libraries(nav_lib ${catkin_LIBRARIES} yaml)

catkin_package(
   INCLUDE_DIRS include
   LIBRARIES ${PROJECT_NAME}
   CATKIN_DEPENDS roscpp)

#include_directories(include/YamlLib/)
{'fraction_non_alphanumeric': 0.09959700633275763, 'fraction_numerical': 0.008059873344847437, 'mean_word_length': 6.79372197309417, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3213187', 'n_tokens_mistral': 672, 'n_tokens_neox': 626, 'n_words': 126}