Skip to content

Commit

Permalink
yarp to root, prepare for WITH_PLUGINS
Browse files Browse the repository at this point in the history
  • Loading branch information
jgvictores committed Mar 23, 2018
1 parent 5565536 commit edee120
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
19 changes: 18 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,28 @@ set_property(GLOBAL PROPERTY ROBOTICSLAB_SPEECH_IDL_SOURCES)
# Store list of exported targets in global scope.
set_property(GLOBAL PROPERTY ROBOTICSLAB_SPEECH_TARGETS)

# Create targets if specific requirements are satisfied.
include(CMakeDependentOption)

# 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(YarpPlugin)
include(YarpInstallationHelpers)
endif()

# Configure installation paths for YARP resources.
yarp_configure_external_installation(roboticslab-speech WITH_PLUGINS)

# Add main contents.
add_subdirectory(cmake)
add_subdirectory(share)
add_subdirectory(libraries)
add_subdirectory(programs)
#add_subdirectory(tests)
add_subdirectory(share)

# Store the package in the user registry.
export(PACKAGE ROBOTICSLAB_SPEECH)
Expand Down
5 changes: 0 additions & 5 deletions share/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
# Author: Juan G Victores & Raul de santos Rico
# 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(roboticslab-speech)

yarp_install(FILES ymanager.ini
DESTINATION ${ROBOTICSLAB-SPEECH_DATA_INSTALL_DIR})

Expand Down

0 comments on commit edee120

Please sign in to comment.