<commit_before>cmake_minimum_required(VERSION 2.8.3)
project(rosbridge_server_cpp)

find_package(catkin REQUIRED COMPONENTS
  async_web_server_cpp
  roscpp
  roscpp_message_reflection
)

find_package(Boost REQUIRED)

find_package(PNG REQUIRED)

# JsonCpp
set(JsonCpp_INCLUDE_DIRS /usr/include/jsoncpp)
set(JsonCpp_LIBRARIES jsoncpp)

catkin_package(
 INCLUDE_DIRS include
 LIBRARIES rosbridge_server_cpp
 CATKIN_DEPENDS async_web_server_cpp roscpp roscpp_message_reflection
 DEPENDS Boost
)

###########
## Build ##
###########

# TODO need to handle this better in roscpp_message_reflection
add_definitions(-DBOOST_MPL_CFG_NO_PREPROCESSED_HEADERS -DBOOST_MPL_LIMIT_VECTOR_SIZE=30)

include_directories(include)
include_directories(
  ${catkin_INCLUDE_DIRS}
  ${Boost_INCLUDE_DIRS}
  ${JsonCpp_INCLUDE_DIRS}
  ${PNG_INCLUDE_DIRS}
)


add_library(rosbridge_server_cpp
  src/rosbridge_server.cpp
  src/rosbridge_transport.cpp
  src/rosbridge_websocket_transport.cpp
  src/rosbridge_protocol_handler.cpp
  src/json_rosbridge_protocol_handler.cpp<commit_msg>Removed boost vector size define as it is no longer needed<commit_after>cmake_minimum_required(VERSION 2.8.3)
project(rosbridge_server_cpp)

find_package(catkin REQUIRED COMPONENTS
  async_web_server_cpp
  roscpp
  roscpp_message_reflection
)

find_package(Boost REQUIRED)

find_package(PNG REQUIRED)

# JsonCpp
set(JsonCpp_INCLUDE_DIRS /usr/include/jsoncpp)
set(JsonCpp_LIBRARIES jsoncpp)

catkin_package(
 INCLUDE_DIRS include
 LIBRARIES rosbridge_server_cpp
 CATKIN_DEPENDS async_web_server_cpp roscpp roscpp_message_reflection
 DEPENDS Boost
)

###########
## Build ##
###########

include_directories(include)
include_directories(
  ${catkin_INCLUDE_DIRS}
  ${Boost_INCLUDE_DIRS}
  ${JsonCpp_INCLUDE_DIRS}
  ${PNG_INCLUDE_DIRS}
)


add_library(rosbridge_server_cpp
  src/rosbridge_server.cpp
  src/rosbridge_transport.cpp
  src/rosbridge_websocket_transport.cpp
  src/rosbridge_protocol_handler.cpp
  src/json_rosbridge_protocol_handler.cpp
{'fraction_non_alphanumeric': 0.08104052026013006, 'fraction_numerical': 0.00400200100050025, 'mean_word_length': 7.81057268722467, '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': '1401897', 'n_tokens_mistral': 784, 'n_tokens_neox': 740, 'n_words': 103}