forked from robotology/icub-contrib-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
23 lines (16 loc) · 1019 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright: (C) 2013 Istituto Italiano di Tecnologia
# Authors: Elena Ceseracciu
# CopyPolicy: Released under the terms of the GNU GPL v2.0.
cmake_minimum_required(VERSION 2.8.7)
project(ICUBcontrib)
set(YARP_REQUIRED_VERSION 2.3.60)
find_package(YARP ${YARP_REQUIRED_VERSION} REQUIRED)
list(APPEND CMAKE_MODULE_PATH ${YARP_MODULE_PATH})
include(YarpInstallationHelpers)
yarp_configure_external_installation(ICUBcontrib)
set(ICUBCONTRIB_MODULE_DIR share/${PROJECT_NAME}/cmake)
configure_file(${CMAKE_SOURCE_DIR}/templates/ICUBcontribConfig.cmake.in
${CMAKE_BINARY_DIR}/ICUBcontribConfig.cmake.build @ONLY)
install(FILES ${CMAKE_BINARY_DIR}/ICUBcontribConfig.cmake.build DESTINATION lib/${PROJECT_NAME} RENAME ICUBcontribConfig.cmake)
install(FILES ICUBcontribHelpers.cmake ICUBcontribOptions.cmake DESTINATION ${ICUBCONTRIB_MODULE_DIR})
install(FILES templates/icubcontrib-config-install.cmake.in templates/icubcontrib-config-uninstall.cmake.in DESTINATION ${ICUBCONTRIB_MODULE_DIR}/templates)