-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
34 lines (26 loc) · 1.57 KB
/
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
24
25
26
27
28
29
30
31
32
33
34
##############################################################################
# CMake
##############################################################################
cmake_minimum_required(VERSION 2.8.3)
project(multi_ontology_reference)
##############################################################################
# Catkin
##############################################################################
find_package(catkin REQUIRED rosjava_build_tools)
# Set the gradle targets you want catkin's make to run by default, e.g.
# catkin_rosjava_setup(installApp)
# Note that the catkin_create_rosjava_xxx scripts will usually automatically
# add tasks to this for you when you create subprojects.
catkin_rosjava_setup(install publishMavenJavaPublicationToMavenRepository)
catkin_package()
##############################################################################
# Installation
##############################################################################
# Change this to match the maven group name you have specified in the
# allprojects closure the root build.gradle
#install(DIRECTORY ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_MAVEN_DESTINATION}/it/emarolab/${PROJECT_NAME}/
# DESTINATION ${CATKIN_GLOBAL_MAVEN_DESTINATION}/it/emarolab/${PROJECT_NAME})
#fix of the above command for supporting `catkin_make install`
#(thanks Taha Elsenosy for suggesting this correctionon in the issue: https://github.com/EmaroLab/multi_ontology_reference/issues/6)
install(DIRECTORY ${CATKIN_DEVEL_PREFIX}/share/${PROJECT_NAME}/
DESTINATION ${CATKIN_DEVEL_PREFIX}/share/${PROJECT_NAME})