refactored env hooks and extra files from 'in' to 'em'
This commit is contained in:
parent
b799ce68c7
commit
0092abbba3
|
@ -0,0 +1,9 @@
|
|||
# generated from ros/core/roslib/cmake/roslib-extras.cmake.em
|
||||
|
||||
@[if BUILDSPACE]@
|
||||
# set path to gendeps executable in buildspace
|
||||
set(gendeps_exe @(CMAKE_CURRENT_SOURCE_DIR)/scripts/gendeps)
|
||||
@[else]@
|
||||
# set path to gendeps executable in installspace
|
||||
set(gendeps_exe @(CMAKE_INSTALL_PREFIX)/lib/roslib/gendeps)
|
||||
@[end if]@
|
|
@ -1,8 +0,0 @@
|
|||
# generated from ros/core/roslib/cmake/roslib-extras.cmake.in
|
||||
|
||||
# set path to gendeps executable
|
||||
if (@BUILDSPACE@)
|
||||
set(gendeps_exe @CMAKE_CURRENT_SOURCE_DIR@/scripts/gendeps)
|
||||
else()
|
||||
set(gendeps_exe @CMAKE_INSTALL_PREFIX@/lib/roslib/gendeps)
|
||||
endif()
|
|
@ -0,0 +1,7 @@
|
|||
# generated from rosbash/env-hooks/15.rosbash.bash.em
|
||||
|
||||
@[if BUILDSPACE]@
|
||||
. @(CMAKE_CURRENT_SOURCE_DIR)/rosbash
|
||||
@[else]@
|
||||
. @(CMAKE_INSTALL_PREFIX)/share/rosbash/rosbash
|
||||
@[end if]@
|
|
@ -1,6 +0,0 @@
|
|||
if @BUILDSPACE@; then
|
||||
. @CMAKE_CURRENT_SOURCE_DIR@/rosbash
|
||||
fi
|
||||
if @INSTALLSPACE@; then
|
||||
. @CMAKE_INSTALL_PREFIX@/share/rosbash/rosbash
|
||||
fi
|
|
@ -0,0 +1,7 @@
|
|||
# generated from rosbash/env-hooks/15.rosbash.tcsh.em
|
||||
|
||||
@[if BUILDSPACE]@
|
||||
. @(CMAKE_CURRENT_SOURCE_DIR)/rostcsh
|
||||
@[else]@
|
||||
. @(CMAKE_INSTALL_PREFIX)/share/rosbash/rostcsh
|
||||
@[end if]@
|
|
@ -1,6 +0,0 @@
|
|||
if @BUILDSPACE@; then
|
||||
. @CMAKE_CURRENT_SOURCE_DIR@/rostcsh
|
||||
fi
|
||||
if @INSTALLSPACE@; then
|
||||
. @CMAKE_INSTALL_PREFIX@/share/rosbash/rostcsh
|
||||
fi
|
|
@ -0,0 +1,7 @@
|
|||
# generated from rosbash/env-hooks/15.rosbash.zsh.em
|
||||
|
||||
@[if BUILDSPACE]@
|
||||
. @(CMAKE_CURRENT_SOURCE_DIR)/roszsh
|
||||
@[else]@
|
||||
. @(CMAKE_INSTALL_PREFIX)/share/rosbash/roszsh
|
||||
@[end if]@
|
|
@ -1,6 +0,0 @@
|
|||
if @BUILDSPACE@; then
|
||||
. @CMAKE_CURRENT_SOURCE_DIR@/roszsh
|
||||
fi
|
||||
if @INSTALLSPACE@; then
|
||||
. @CMAKE_INSTALL_PREFIX@/share/rosbash/roszsh
|
||||
fi
|
|
@ -1,22 +1,24 @@
|
|||
include(CMakeParseArguments)
|
||||
|
||||
macro(rosunit_initialize_tests)
|
||||
if (@BUILDSPACE@)
|
||||
find_program_required(ROSUNIT_EXE rosunit
|
||||
PATHS @PROJECT_SOURCE_DIR@/scripts
|
||||
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
|
||||
else()
|
||||
find_program_required(ROSUNIT_EXE rosunit
|
||||
PATHS @CMAKE_INSTALL_PREFIX@/bin
|
||||
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
|
||||
endif()
|
||||
@[if BUILDSPACE]@
|
||||
# find program in buildspace
|
||||
find_program_required(ROSUNIT_EXE rosunit
|
||||
PATHS @(PROJECT_SOURCE_DIR)/scripts
|
||||
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
|
||||
@[else]@
|
||||
# find program in installspace
|
||||
find_program_required(ROSUNIT_EXE rosunit
|
||||
PATHS @(CMAKE_INSTALL_PREFIX)/bin
|
||||
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
|
||||
@[end if]@
|
||||
endmacro()
|
||||
|
||||
rosunit_initialize_tests()
|
||||
|
||||
function(add_pyunit file)
|
||||
|
||||
message(WARNING "add_pyunit() is deprecated. For Python tests, use add_nostests() instead.")
|
||||
message(WARNING "add_pyunit() is deprecated. For Python tests, use catkin_add_nosetests() instead.")
|
||||
|
||||
# Look for optional TIMEOUT argument, #2645
|
||||
cmake_parse_arguments(_pyunit "" "TIMEOUT;WORKING_DIRECTORY" "" ${ARGN})
|
Loading…
Reference in New Issue