Skip to content
Snippets Groups Projects
Commit ef999e78 authored by Jeffrey Fisher's avatar Jeffrey Fisher
Browse files

Base ROS package

parent c29c20fb
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 3.8)
project(qubo_gui)
find_package(ament_cmake REQUIRED)
# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
......@@ -10,7 +12,6 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
find_package(ament_cmake REQUIRED)
find_package(qt_gui_cpp REQUIRED)
find_package(rqt_gui_cpp REQUIRED)
find_package(Qt5Widgets REQUIRED)
......@@ -27,4 +28,17 @@ if(BUILD_TESTING)
ament_lint_auto_find_test_dependencies()
endif()
add_executable(${PROJECT_NAME} src/main.cpp)
target_link_libraries(${PROJECT_NAME} PUBLIC
${qt_gui_cpp_TARGETS}
${rqt_gui_cpp_TARGETS}
Qt5::Widgets
)
install(
TARGETS ${PROJECT_NAME}
LIBRARY DESTINATION lib/${PROJECT_NAME}
RUNTIME DESTINATION bin/${PROJECT_NAME}
)
ament_package()
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>qubo-gui</name>
<name>qubo_gui</name>
<version>0.0.0</version>
<description>TODO: Package description</description>
<maintainer email="team@ram.umd.edu">R@M</maintainer>
<license>TODO: License declaration</license>
<buildtool_depend>ament_cmake</buildtool_depend>
......
#include <iostream>
using std::cout;
int main()
{
cout << "hello world\n";
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment