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

set(CMAKE_BUILD_TYPE Debug)

#Get version info from git and pass it into compiled code
execute_process(COMMAND git describe --tags --abbrev=0
    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
    OUTPUT_VARIABLE GIT_VERSION)
string(STRIP "${GIT_VERSION}" GIT_VERSION)

execute_process(COMMAND date "+%Y-%m-%d-%H:%M"
    OUTPUT_VARIABLE BUILD_TIME)
string(STRIP ${BUILD_TIME} BUILD_TIME)

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/Version.cpp.in ${CMAKE_CURRENT_BINARY_DIR}/Version.cpp)
set(version_file "${CMAKE_CURRENT_BINARY_DIR}/Version.cpp")

set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")

find_package(catkin REQUIRED COMPONENTS 
  rqt_gui
  rqt_gui_cpp
  cv_bridge
  image_transport
  shared_messages
  geometry_msgs
)

find_package(Qt4 REQUIRED COMPONENTS
  QtCore
  QtGui
  QtXml
)

find_package(gazebo REQUIRED)
include_directories(${GAZEBO_INCLUDE_DIRS})
link_directories(${GAZEBO_LIBRARY_DIRS})
#list(APPEND CMAKE_CXX_FLAGS "${GAZEBO_CXX_FLAGS}")

catkin_package(
  CATKIN_DEPENDS rqt_gui rqt_gui_cpp cv_bridge image_transport shared_messages geometry_msgs
)

SET(rover_gui_plugin_RESOURCES resources/resources.qrc)

qt4_add_resources(rqt_rover_gui_resources_rcc ${rover_gui_plugin_RESOURCES})

qt4_wrap_cpp(
  rover_gui_plugin_MOCS
  src/rover_gui_plugin.h
  src/CameraFrame.h
  src/MapFrame.h
  src/USFrame.h
  src/GPSFrame.h
  src/IMUFrame.h
  #src/IMUWidget.h
)

qt4_wrap_ui(
  rover_gui_plugin_UIS_H
  src/rover_gui_plugin.ui
)

include(
  ${QT_USE_FILE}
)

include_directories(
  include
  src
  ${CMAKE_CURRENT_BINARY_DIR}
)

link_directories(
  lib
)

add_library(
  rqt_rover_gui
  ${version_file}
  src/GazeboSimManager.cpp
  src/rover_gui_plugin.cpp
  src/CameraFrame.cpp
  src/MapFrame.cpp
  src/USFrame.cpp
  src/GPSFrame.cpp
  #src/IMUWidget.cpp
  src/IMUFrame.cpp<commit_msg>Modified the CMakeLists file to compile the new interface<commit_after>cmake_minimum_required(VERSION 2.8.3)
project(rqt_rover_gui)

set(CMAKE_BUILD_TYPE Debug)

#Get version info from git and pass it into compiled code
execute_process(COMMAND git describe --tags --abbrev=0
    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
    OUTPUT_VARIABLE GIT_VERSION)
string(STRIP "${GIT_VERSION}" GIT_VERSION)

execute_process(COMMAND date "+%Y-%m-%d-%H:%M"
    OUTPUT_VARIABLE BUILD_TIME)
string(STRIP ${BUILD_TIME} BUILD_TIME)

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/Version.cpp.in ${CMAKE_CURRENT_BINARY_DIR}/Version.cpp)
set(version_file "${CMAKE_CURRENT_BINARY_DIR}/Version.cpp")

set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")

find_package(catkin REQUIRED COMPONENTS 
  rqt_gui
  rqt_gui_cpp
  cv_bridge
  image_transport
  shared_messages
  geometry_msgs
)

find_package(Qt4 REQUIRED COMPONENTS
  QtCore
  QtGui
  QtXml
)

find_package(gazebo REQUIRED)
include_directories(${GAZEBO_INCLUDE_DIRS})
link_directories(${GAZEBO_LIBRARY_DIRS})
#list(APPEND CMAKE_CXX_FLAGS "${GAZEBO_CXX_FLAGS}")

catkin_package(
  CATKIN_DEPENDS rqt_gui rqt_gui_cpp cv_bridge image_transport shared_messages geometry_msgs
)

SET(rover_gui_plugin_RESOURCES resources/resources.qrc)

qt4_add_resources(rqt_rover_gui_resources_rcc ${rover_gui_plugin_RESOURCES})

qt4_wrap_cpp(
  rover_gui_plugin_MOCS
  src/rover_gui_plugin.h
  src/CameraFrame.h
  src/MapFrame.h
  src/USFrame.h
  src/GPSFrame.h
  src/IMUFrame.h
  src/JoystickGripperInterface.h
  #src/IMUWidget.h
)

qt4_wrap_ui(
  rover_gui_plugin_UIS_H
  src/rover_gui_plugin.ui
)

include(
  ${QT_USE_FILE}
)

include_directories(
  include
  src
  ${CMAKE_CURRENT_BINARY_DIR}
)

link_directories(
  lib
)

add_library(
  rqt_rover_gui
  ${version_file}
  src/GazeboSimManager.cpp
  src/JoystickGripperInterface.cpp
  src/rover_gui_plugin.cpp
  src/CameraFrame.cpp
  src/MapFrame.cpp
  src/USFrame.cpp
  src/GPSFrame.cpp
  #src/IMUWidget.cpp
  src/IMUFrame.cpp
{'fraction_non_alphanumeric': 0.08917525773195877, 'fraction_numerical': 0.004639175257731959, 'mean_word_length': 6.018083182640145, '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': '2954711', 'n_tokens_mistral': 1634, 'n_tokens_neox': 1570, 'n_words': 225}