Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
Add checking the condiition where testing is really enabled or not
  • Loading branch information
kazuki0824 committed Aug 6, 2022
1 parent 57053f5 commit bf6f456
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
8 changes: 6 additions & 2 deletions hrpsys_tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,9 @@ install(DIRECTORY scripts DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} USE_SO
## Add folders to be run by python nosetests
# catkin_add_nosetests(test)
install(DIRECTORY test samples DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} USE_SOURCE_PERMISSIONS)
add_rostest(test/test-hrpsys-config.test)
add_rostest(test/test-pa10.test)

if(CATKIN_ENABLE_TESTING)
add_rostest(test/test-hrpsys-config.test)
add_rostest(test/test-pa10.test)
endif()

7 changes: 4 additions & 3 deletions openrtm_tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ install(PROGRAMS scripts/rtmlaunch scripts/rtmtest DESTINATION ${CATKIN_GLOBAL_B
## Add folders to be run by python nosetests
# catkin_add_nosetests(test)


add_rostest(test/test-openrtm-tools.test)
add_rostest(test/test-rtmlaunch.test)
if(CATKIN_ENABLE_TESTING)
add_rostest(test/test-openrtm-tools.test)
add_rostest(test/test-rtmlaunch.test)
endif()

4 changes: 3 additions & 1 deletion rtmbuild/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ install(DIRECTORY cmake scripts test
USE_SOURCE_PERMISSIONS
)

add_rostest(test/test-compile-idl.test)
if(CATKIN_ENABLE_TESTING)
add_rostest(test/test-compile-idl.test)
endif()

0 comments on commit bf6f456

Please sign in to comment.