Skip to content

Commit

Permalink
Place YARP-related lines in root CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed Nov 8, 2018
1 parent 8f0c76b commit ca75d12
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
17 changes: 15 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,26 @@ cmake_minimum_required(VERSION 2.8.9 FATAL_ERROR)

project(ROBOT_DEVASTATION_ROBOTS NONE)

# Define custom options.
option(INSTALL_SERVICES "Choose if you want to install Robot Devastation services" ON)

# add main contents
# Find YARP (main dependency).
find_package(YARP REQUIRED)

# Load YARP modules.
if(YARP_VERSION_SHORT VERSION_LESS 2.3.70)
list(APPEND CMAKE_MODULE_PATH ${YARP_MODULE_PATH})
include(YarpInstallationHelpers)
endif()

# Configure installation paths for YARP resources.
yarp_configure_external_installation(robotDevastation-robots)

# Add main contents.
add_subdirectory(share)
add_subdirectory(scripts)

# uninstall target
# Configure uninstall target.
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/template/ROBOT_DEVASTATION_ROBOTSConfigUninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/ROBOT_DEVASTATION_ROBOTSConfigUninstall.cmake" IMMEDIATE @ONLY)
Expand Down
6 changes: 0 additions & 6 deletions share/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,5 @@
# Author: ASROB
# CopyPolicy: Released under the terms of the GNU GPL v2.0.

find_package(YARP REQUIRED)
list(APPEND CMAKE_MODULE_PATH ${YARP_MODULE_PATH})
include(YarpInstallationHelpers)
yarp_configure_external_installation(robotDevastation-robots)

### Go through single applications

add_subdirectory(launch)

0 comments on commit ca75d12

Please sign in to comment.