-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
29 lines (26 loc) · 949 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
24
25
26
27
28
29
#
# The find_package macro for Orocos-RTT works best with
# cmake >= 2.6.3
#
cmake_minimum_required(VERSION 2.6.3)
#
# This creates a standard cmake project. You may extend this file with
# any cmake macro you see fit.
#
project(LWRRobotDescription)
file(GLOB DEPLOY_FILES_AND_DIRS "${PROJECT_SOURCE_DIR}/*")
foreach(ITEM ${DEPLOY_FILES_AND_DIRS})
get_filename_component(tmpName ${ITEM} NAME)
SET(tmpName2 "${PROJECT_SOURCE_DIR}/${tmpName}")
IF( IS_DIRECTORY "${ITEM}" )
IF( NOT ((${ITEM} MATCHES "build") OR (${ITEM} MATCHES ".git")))
LIST( APPEND DIRS_TO_DEPLOY "${ITEM}" )
ENDIF()
ELSE()
IF( NOT ((${ITEM} MATCHES "CMakeLists.txt") OR (${ITEM} MATCHES "README.md")))
LIST( APPEND FILES_TO_DEPLOY "${ITEM}" )
ENDIF()
ENDIF()
endforeach()
INSTALL( FILES ${FILES_TO_DEPLOY} DESTINATION etc/lwr-robot-description)
INSTALL( DIRECTORY ${DIRS_TO_DEPLOY} DESTINATION etc/lwr-robot-description)