# TODO(#2372) These are warnings that we can't handle yet.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXX_FLAGS_NO_SIGN_COMPARE}")

set(drakeCollision_SRC_FILES DrakeCollision.cpp Element.cpp Model.cpp)
pods_find_pkg_config(bullet)

if(bullet_FOUND)
  add_definitions(-DBULLET_COLLISION -DBT_USE_DOUBLE_PRECISION)
  set(drakeCollision_SRC_FILES ${drakeCollision_SRC_FILES} bullet_model.cc)
  set(bullet "yes" CACHE STRING "yes")
endif()

add_library_with_exports(LIB_NAME drakeCollision SOURCE_FILES ${drakeCollision_SRC_FILES})

if(bullet_FOUND)
  pods_use_pkg_config_packages(drakeCollision bullet)
endif()
target_link_libraries(drakeCollision drakeShapes drakeCommon)

enable_testing()
add_subdirectory(test)

pods_install_libraries(drakeCollision)
drake_install_headers(DrakeCollision.h point_pair.h Element.h Model.h)
pods_install_pkg_config_file(drake-collision
  LIBS -ldrakeCollision
  REQUIRES
  VERSION 0.0.1)

set(drakeCollision_SRC_FILES DrakeCollision.cpp Element.cpp Model.cpp)
pods_find_pkg_config(bullet)

if(bullet_FOUND)
  add_definitions(-DBULLET_COLLISION -DBT_USE_DOUBLE_PRECISION)
  set(drakeCollision_SRC_FILES ${drakeCollision_SRC_FILES} bullet_model.cc)
  set(bullet "yes" CACHE STRING "yes")
endif()

add_library_with_exports(LIB_NAME drakeCollision SOURCE_FILES ${drakeCollision_SRC_FILES})

if(bullet_FOUND)
  pods_use_pkg_config_packages(drakeCollision bullet)
endif()
target_link_libraries(drakeCollision drakeShapes drakeCommon)

enable_testing()
add_subdirectory(test)

pods_install_libraries(drakeCollision)
drake_install_headers(DrakeCollision.h point_pair.h Element.h Model.h)
pods_install_pkg_config_file(drake-collision
  LIBS -ldrakeCollision
  REQUIRES
  VERSION 0.0.1)

Stop suppressing sign-compare warnings in collision.
Stop suppressing sign-compare warnings in collision.
