<commit_before>cmake_minimum_required(VERSION 2.4.6)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")

find_package(catkin REQUIRED COMPONENTS
    geometry_msgs
    interactive_markers
    openrave_catkin
    std_msgs
    visualization_msgs
)
include_directories(${catkin_INCLUDE_DIRS} ${OpenRAVE_INCLUDE_DIRS})
link_directories(${catkin_LIBRARY_DIRS} ${OpenRAVE_LIBRARY_DIRS})

find_package(Boost REQUIRED COMPONENTS thread)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})

find_package(OGRE REQUIRED)
include_directories(${OGRE_INCLUDE_DIRS})
link_directories(${OGRE_LIBRARY_DIRS})

find_package(Qt4 COMPONENTS QtCore QtGui REQUIRED)
add_definitions(-DQT_NO_KEYWORDS)
include(${QT_USE_FILE})

catkin_package(
    INCLUDE_DIRS include
    LIBRARIES ${PROJECT_NAME}
    CATKIN_DEPENDS
        geometry_msgs
        interactive_markers
        std_msgs
        visualization_msgs
    DEPENDS
        boost
        openrave
)

include_directories(include/${PROJECT_NAME})
include(DetectCXX11Flags)

# Helper library that implements core functionality. This includes the OpenRAVE
# viewer plugins.
add_library(${PROJECT_NAME} SHARED
    src/or_interactivemarker.cpp
    #src/or_rviz.cpp
    src/markers/JointMarker.cpp
    src/markers/KinBodyJointMarker.cpp
    src/markers/KinBodyLinkMarker.cpp
    src/markers/KinBodyMarker.cpp
    src/markers/LinkMarker.cpp
    src/markers/ManipulatorMarker.cpp
    src/util/or_conversions.cpp
)
target_link_libraries(${PROJECT_NAME}
    ${catkin_LIBRARIES}
)

# Stub library that registers the plugins with OpenRAVE.
openrave_plugin(${PROJECT_NAME}_plugin
    src/or_interactivemarker_plugin.cpp
)
target_link_libraries(${PROJECT_NAME}_plugin
    ${PROJECT_NAME}
    ${catkin_LIBRARIES}
)

install(TARGETS ${PROJECT_NAME}
    ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
    LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
    RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)<commit_msg>Refactored in preparation for RViz plugins.<commit_after>cmake_minimum_required(VERSION 2.4.6)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")

find_package(catkin REQUIRED COMPONENTS
    geometry_msgs
    interactive_markers
    openrave_catkin
    std_msgs
    visualization_msgs
)
include_directories(${catkin_INCLUDE_DIRS} ${OpenRAVE_INCLUDE_DIRS})
link_directories(${catkin_LIBRARY_DIRS} ${OpenRAVE_LIBRARY_DIRS})

find_package(Boost REQUIRED COMPONENTS thread)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})

find_package(OGRE REQUIRED)
include_directories(${OGRE_INCLUDE_DIRS})
link_directories(${OGRE_LIBRARY_DIRS})

find_package(Qt4 COMPONENTS QtCore QtGui REQUIRED)
add_definitions(-DQT_NO_KEYWORDS)
include(${QT_USE_FILE})

catkin_package(
    INCLUDE_DIRS include
    LIBRARIES
        ${PROJECT_NAME}
        ${PROJECT_NAME}_markers
    CATKIN_DEPENDS
        geometry_msgs
        interactive_markers
        std_msgs
        visualization_msgs
    DEPENDS
        boost
        openrave
)

include_directories(include/${PROJECT_NAME})
include(DetectCXX11Flags)

# Helper library that implements core functionality.
add_library(${PROJECT_NAME}_markers SHARED
    src/markers/JointMarker.cpp
    src/markers/KinBodyJointMarker.cpp
    src/markers/KinBodyLinkMarker.cpp
    src/markers/KinBodyMarker.cpp
    src/markers/LinkMarker.cpp
    src/markers/ManipulatorMarker.cpp
    src/util/or_conversions.cpp
)
target_link_libraries(${PROJECT_NAME}_markers
    ${catkin_LIBRARIES}
)

# OpenRAVE viewer classes.
qt4_wrap_cpp(MOC_FILES 
    include/${PROJECT_NAME}/or_rviz.h
    src/rviz/EnvironmentDisplay.h
    src/rviz/KinBodyVisual.h
)

add_library(${PROJECT_NAME} SHARED
    src/or_interactivemarker.cpp
    src/or_rviz.cpp
    ${MOC_FILES}
)
target_link_libraries(${PROJECT_NAME}
    ${PROJECT_NAME}_markers
    ${catkin_LIBRARIES}
    ${OGRE_LIBRARIES}
    ${QT_LIBRARIES}
)

# RViz viewer plugins.
add_library(${PROJECT_NAME}_rviz SHARED
    src/rviz/EnvironmentDisplay.cpp
    src/rviz/KinBodyVisual.cpp
    src/rviz/LinkVisual.cpp
)
message(STATUS "MOC Files: ${MOC_FILES}")

# Stub library that registers the plugins with OpenRAVE.
openrave_plugin(${PROJECT_NAME}_plugin
    src/or_interactivemarker_plugin.cpp
)
target_link_libraries(${PROJECT_NAME}_plugin
    ${PROJECT_NAME}
    ${catkin_LIBRARIES}
)

install(TARGETS ${PROJECT_NAME}
    ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
    LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
    RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
{'fraction_non_alphanumeric': 0.0831691836288028, 'fraction_numerical': 0.0028452615451958854, 'mean_word_length': 5.391608391608392, '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': '3567211', 'n_tokens_mistral': 1752, 'n_tokens_neox': 1651, 'n_words': 223}