Skip to content
Snippets Groups Projects
CMakeLists.txt 1.38 KiB
Newer Older
Joseph Mirabel's avatar
Joseph Mirabel committed
#
Guilhem Saurel's avatar
Guilhem Saurel committed
# Copyright (c) 2019, 2020 CNRS Authors: Joseph Mirabel, Guilhem Saurel
Joseph Mirabel's avatar
Joseph Mirabel committed
#
Guilhem Saurel's avatar
Guilhem Saurel committed
# This file is part of hpp_tutorial hpp_tutorial 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 3
# of the License, or (at your option) any later version.
Joseph Mirabel's avatar
Joseph Mirabel committed
#
Guilhem Saurel's avatar
Guilhem Saurel committed
# hpp_tutorial 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 General Lesser Public License for more
# details.  You should have received a copy of the GNU Lesser General Public
# License along with hpp_tutorial  If not, see <http://www.gnu.org/licenses/>.
Guilhem Saurel's avatar
Guilhem Saurel committed
# Tutorial 1

# Create and install executable running the corba server
Guilhem Saurel's avatar
Guilhem Saurel committed
add_executable(hpp-tutorial-1 tutorial_1.cc)
# Link executable with hpp-corbaserver library
Guilhem Saurel's avatar
Guilhem Saurel committed
target_link_libraries(hpp-tutorial-1 hpp-core::hpp-core)
# Install executable
Guilhem Saurel's avatar
Guilhem Saurel committed
install(TARGETS hpp-tutorial-1 DESTINATION ${CMAKE_INSTALL_BINDIR})
Guilhem Saurel's avatar
Guilhem Saurel committed
# Tutorial 2
Joseph Mirabel's avatar
Joseph Mirabel committed

# Create and install executable running the corba server
Guilhem Saurel's avatar
Guilhem Saurel committed
add_executable(hpp-tutorial-2-server tutorial_2.cc)
Joseph Mirabel's avatar
Joseph Mirabel committed
# Link executable with hpp-corbaserver library
Guilhem Saurel's avatar
Guilhem Saurel committed
target_link_libraries(hpp-tutorial-2-server hpp-corbaserver::hpp-corbaserver)
Joseph Mirabel's avatar
Joseph Mirabel committed
# Install executable
Guilhem Saurel's avatar
Guilhem Saurel committed
install(TARGETS hpp-tutorial-2-server DESTINATION ${CMAKE_INSTALL_BINDIR})