Skip to content

Commit

Permalink
Wrap existing examples using new TESSERACT_ENABLE_EXAMPLES variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Feb 28, 2022
1 parent 85a2e94 commit 56d2ee4
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tesseract_collision/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ if(TESSERACT_ENABLE_BENCHMARKING AND TESSERACT_BUILD_FCL)
endif()

# Examples
if(TESSERACT_BUILD_FCL)
if(TESSERACT_ENABLE_EXAMPLES AND TESSERACT_BUILD_FCL)
add_subdirectory(examples)
endif()

Expand Down
4 changes: 3 additions & 1 deletion tesseract_geometry/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ install(
install(FILES "${CMAKE_CURRENT_LIST_DIR}/cmake/Findassimp.cmake" DESTINATION lib/cmake/${PROJECT_NAME})

# ADD Examples
add_subdirectory(examples)
if(TESSERACT_ENABLE_EXAMPLES)
add_subdirectory(examples)
endif()

if(TESSERACT_ENABLE_TESTING)
enable_testing()
Expand Down
4 changes: 3 additions & 1 deletion tesseract_scene_graph/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ install(
PATTERN ".svn" EXCLUDE)

# ADD Examples
add_subdirectory(examples)
if(TESSERACT_ENABLE_EXAMPLES)
add_subdirectory(examples)
endif()

if(TESSERACT_ENABLE_TESTING)
enable_testing()
Expand Down
4 changes: 3 additions & 1 deletion tesseract_srdf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ install(FILES include/${PROJECT_NAME}/srdf_model.h include/${PROJECT_NAME}/kinem
include/${PROJECT_NAME}/utils.h DESTINATION include/${PROJECT_NAME})

# ADD Examples
add_subdirectory(examples)
if(TESSERACT_ENABLE_EXAMPLES)
add_subdirectory(examples)
endif()

if(TESSERACT_ENABLE_TESTING)
enable_testing()
Expand Down
4 changes: 3 additions & 1 deletion tesseract_urdf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ install(FILES include/${PROJECT_NAME}/urdf_parser.h DESTINATION include/${PROJEC
install(FILES include/${PROJECT_NAME}/utils.h DESTINATION include/${PROJECT_NAME})

# ADD Examples
add_subdirectory(examples)
if(TESSERACT_ENABLE_EXAMPLES)
add_subdirectory(examples)
endif()

if(TESSERACT_ENABLE_TESTING)
enable_testing()
Expand Down

0 comments on commit 56d2ee4

Please sign in to comment.