ports/math/fcl05/files/patch-CMakeLists.txt
Diane Bruce 9676d6bc1e This is a snapshot version of FCL at 0.5.0 mainly to support
python-fcl otherwise please use the fcl port.
N.B. python-fcl also needs octomap

FCL is a library for performing three types of proximity queries on a pair of
geometric models composed of triangles.

It performs:
* Collision detection: detecting whether the two models overlap, and optionally,
  all of the triangles that overlap.
* Distance computation: computing the minimum distance between a pair of models,
  i.e., the distance between the closest pair of points.
* Tolerance verification: determining whether two models are closer or farther
  than a tolerance distance.
* Continuous collision detection: detecting whether the two moving models
  overlap during the movement, and optionally, the time of contact.
* Contact information: for collision detection and continuous collision
  detection, the contact information (including contact normals and contact
  points) can be returned optionally.
2020-03-25 00:47:14 +00:00

44 lines
1.3 KiB
Text

--- CMakeLists.txt.orig 2016-07-20 03:11:04 UTC
+++ CMakeLists.txt
@@ -7,7 +7,7 @@ if(POLICY CMP0042)
cmake_policy(SET CMP0042 NEW)
endif()
-project(fcl CXX C)
+project(fcl05 CXX C)
# set the default build type
if (NOT CMAKE_BUILD_TYPE)
@@ -33,12 +33,14 @@ if(MSVC OR MSVC90 OR MSVC10)
set(MSVC ON)
endif (MSVC OR MSVC90 OR MSVC10)
-set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
+set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/fcl/lib)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules")
include(CompilerSettings)
include(FCLVersion)
include(GNUInstallDirs)
+set(CMAKE_INSTALL_INCLUDEDIR "include/fcl05")
+
if(MSVC OR IS_ICPC)
option(FCL_STATIC_LIBRARY "Whether the FCL library should be static rather than shared" ON)
else()
@@ -143,7 +145,7 @@ add_subdirectory(include/fcl)
add_subdirectory(src)
set(pkg_conf_file_in "${CMAKE_CURRENT_SOURCE_DIR}/fcl.pc.in")
-set(pkg_conf_file_out "${CMAKE_CURRENT_BINARY_DIR}/fcl.pc")
+set(pkg_conf_file_out "${CMAKE_CURRENT_BINARY_DIR}/fcl05.pc")
if(NOT MSVC)
set(PKG_CFLAGS "-std=c++11")
endif()
@@ -154,6 +156,7 @@ install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL
PATTERN ".DS_Store" EXCLUDE
)
+SET(CMAKE_INSTALL_LIBDIR "libdata")
install(FILES "${pkg_conf_file_out}" DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig/ COMPONENT pkgconfig)
# Add uninstall target