From 682a1b54983e3b3445d9ded65de13c0dbd9810f9 Mon Sep 17 00:00:00 2001 From: Manfred Kroehnert <Manfred.Kroehnert@kit.edu> Date: Wed, 19 Feb 2014 15:43:31 +0100 Subject: [PATCH] cmake: add missing main.cpp --- .../ForceTorqueObserver/CMakeLists.txt | 2 +- .../applications/ForceTorqueObserver/main.cpp | 33 +++++++++++++++++++ .../applications/MotionControl/CMakeLists.txt | 2 +- .../applications/MotionControl/main.cpp | 33 +++++++++++++++++++ .../MotionControlTest/CMakeLists.txt | 2 +- .../applications/MotionControlTest/main.cpp | 33 +++++++++++++++++++ .../TCPControlUnit/CMakeLists.txt | 2 +- .../applications/TCPControlUnit/main.cpp | 33 +++++++++++++++++++ 8 files changed, 136 insertions(+), 4 deletions(-) create mode 100644 source/RobotAPI/applications/ForceTorqueObserver/main.cpp create mode 100644 source/RobotAPI/applications/MotionControl/main.cpp create mode 100644 source/RobotAPI/applications/MotionControlTest/main.cpp create mode 100644 source/RobotAPI/applications/TCPControlUnit/main.cpp diff --git a/source/RobotAPI/applications/ForceTorqueObserver/CMakeLists.txt b/source/RobotAPI/applications/ForceTorqueObserver/CMakeLists.txt index 07d5eedc2..ec2db460d 100755 --- a/source/RobotAPI/applications/ForceTorqueObserver/CMakeLists.txt +++ b/source/RobotAPI/applications/ForceTorqueObserver/CMakeLists.txt @@ -20,7 +20,7 @@ armarx_build_if(ArmarXCoreObservers_ENABLED "ArmarXCoreObservers library disable if (ARMARX_BUILD) set(COMPONENT_LIBS RobotAPIUnits RobotAPICore RobotAPIInterfaces ArmarXInterfaces ArmarXCore ArmarXCoreObservers ArmarXCoreRemoteRobot) - set(SOURCES ForceTorqueObserverApp.h) + set(SOURCES main.cpp ForceTorqueObserverApp.h) armarx_add_component_executable("${SOURCES}") endif() diff --git a/source/RobotAPI/applications/ForceTorqueObserver/main.cpp b/source/RobotAPI/applications/ForceTorqueObserver/main.cpp new file mode 100644 index 000000000..bac39a88e --- /dev/null +++ b/source/RobotAPI/applications/ForceTorqueObserver/main.cpp @@ -0,0 +1,33 @@ +/** + * This file is part of ArmarX. + * + * ArmarX is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * ArmarX is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * @package RobotAPI::application::ForceTorqueObserver + * @author Manfred Kroehnert + * @date 2014 + * @copyright http://www.gnu.org/licenses/gpl.txt + * GNU General Public License + */ + +#include "ForceTorqueObserverApp.h" +#include <Core/core/logging/Logging.h> + +int main(int argc, char* argv[]) +{ + armarx::ApplicationPtr app = armarx::Application::createInstance<armarx::ForceTorqueObserverApp>(); + app->setName("ForceTorqueObserver"); + + return app->main(argc, argv); +} diff --git a/source/RobotAPI/applications/MotionControl/CMakeLists.txt b/source/RobotAPI/applications/MotionControl/CMakeLists.txt index fc628f1e4..8ef8e1330 100755 --- a/source/RobotAPI/applications/MotionControl/CMakeLists.txt +++ b/source/RobotAPI/applications/MotionControl/CMakeLists.txt @@ -20,7 +20,7 @@ armarx_build_if(ArmarXCoreObservers_ENABLED "ArmarXCoreObservers library disable if (ARMARX_BUILD) set(COMPONENT_LIBS MotionControl RobotAPICore ArmarXInterfaces ArmarXCore ArmarXCoreObservers ArmarXCoreRobotStateComponent ArmarXCoreStatechart ArmarXCoreOperations) - set(SOURCES MotionControlApp.h) + set(SOURCES main.cpp MotionControlApp.h) armarx_add_component_executable("${SOURCES}") endif() diff --git a/source/RobotAPI/applications/MotionControl/main.cpp b/source/RobotAPI/applications/MotionControl/main.cpp new file mode 100644 index 000000000..4e6878169 --- /dev/null +++ b/source/RobotAPI/applications/MotionControl/main.cpp @@ -0,0 +1,33 @@ +/** + * This file is part of ArmarX. + * + * ArmarX is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * ArmarX is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * @package RobotAPI::application::MotionControl + * @author Manfred Kroehnert + * @date 2014 + * @copyright http://www.gnu.org/licenses/gpl.txt + * GNU General Public License + */ + +#include "MotionControlApp.h" +#include <Core/core/logging/Logging.h> + +int main(int argc, char* argv[]) +{ + armarx::ApplicationPtr app = armarx::Application::createInstance<armarx::MotionControlApp>(); + app->setName("MotionControl"); + + return app->main(argc, argv); +} diff --git a/source/RobotAPI/applications/MotionControlTest/CMakeLists.txt b/source/RobotAPI/applications/MotionControlTest/CMakeLists.txt index 54cdd8903..d3aa79752 100644 --- a/source/RobotAPI/applications/MotionControlTest/CMakeLists.txt +++ b/source/RobotAPI/applications/MotionControlTest/CMakeLists.txt @@ -22,7 +22,7 @@ if (ARMARX_BUILD) include_directories(${Simox_INCLUDE_DIRS}) set(COMPONENT_LIBS MotionControl RobotAPICore ArmarXInterfaces ArmarXCore ArmarXCoreObservers ArmarXCoreRobotStateComponent ArmarXCoreStatechart ArmarXCoreOperations ${Simox_LIBRARIES}) - set(SOURCES MotionControlTestApp.h) + set(SOURCES main.cpp MotionControlTestApp.h) armarx_add_component_executable("${SOURCES}") endif() diff --git a/source/RobotAPI/applications/MotionControlTest/main.cpp b/source/RobotAPI/applications/MotionControlTest/main.cpp new file mode 100644 index 000000000..630ae96d8 --- /dev/null +++ b/source/RobotAPI/applications/MotionControlTest/main.cpp @@ -0,0 +1,33 @@ +/** + * This file is part of ArmarX. + * + * ArmarX is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * ArmarX is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * @package RobotAPI::application::MotionControlTest + * @author Manfred Kroehnert + * @date 2014 + * @copyright http://www.gnu.org/licenses/gpl.txt + * GNU General Public License + */ + +#include "MotionControlTestApp.h" +#include <Core/core/logging/Logging.h> + +int main(int argc, char* argv[]) +{ + armarx::ApplicationPtr app = armarx::Application::createInstance<armarx::MotionControlTestApp>(); + app->setName("MotionControlTest"); + + return app->main(argc, argv); +} diff --git a/source/RobotAPI/applications/TCPControlUnit/CMakeLists.txt b/source/RobotAPI/applications/TCPControlUnit/CMakeLists.txt index 1a1a725f4..81d0f4e07 100755 --- a/source/RobotAPI/applications/TCPControlUnit/CMakeLists.txt +++ b/source/RobotAPI/applications/TCPControlUnit/CMakeLists.txt @@ -22,7 +22,7 @@ if (ARMARX_BUILD) include_directories(${Simox_INCLUDE_DIRS}) set(COMPONENT_LIBS RobotAPIUnits RobotAPICore RobotAPIInterfaces ArmarXInterfaces ArmarXCore ArmarXCoreObservers ArmarXCoreRemoteRobot ${Simox_LIBRARIES}) - set(SOURCES TCPControlUnitApp.h) + set(SOURCES main.cpp TCPControlUnitApp.h) armarx_add_component_executable("${SOURCES}") endif() diff --git a/source/RobotAPI/applications/TCPControlUnit/main.cpp b/source/RobotAPI/applications/TCPControlUnit/main.cpp new file mode 100644 index 000000000..07873e9ab --- /dev/null +++ b/source/RobotAPI/applications/TCPControlUnit/main.cpp @@ -0,0 +1,33 @@ +/** + * This file is part of ArmarX. + * + * ArmarX is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * ArmarX is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * @package RobotAPI::application::TCPControlUnit + * @author Manfred Kroehnert + * @date 2014 + * @copyright http://www.gnu.org/licenses/gpl.txt + * GNU General Public License + */ + +#include "TCPControlUnitApp.h" +#include <Core/core/logging/Logging.h> + +int main(int argc, char* argv[]) +{ + armarx::ApplicationPtr app = armarx::Application::createInstance<armarx::TCPControlUnitApp>(); + app->setName("TCPControlUnit"); + + return app->main(argc, argv); +} -- GitLab