embree-config-install.cmake 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. ## ======================================================================== ##
  2. ## Copyright 2009-2018 Intel Corporation ##
  3. ## ##
  4. ## Licensed under the Apache License, Version 2.0 (the "License"); ##
  5. ## you may not use this file except in compliance with the License. ##
  6. ## You may obtain a copy of the License at ##
  7. ## ##
  8. ## http://www.apache.org/licenses/LICENSE-2.0 ##
  9. ## ##
  10. ## Unless required by applicable law or agreed to in writing, software ##
  11. ## distributed under the License is distributed on an "AS IS" BASIS, ##
  12. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ##
  13. ## See the License for the specific language governing permissions and ##
  14. ## limitations under the License. ##
  15. ## ======================================================================== ##
  16. SET(EMBREE_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR}/../../../)
  17. GET_FILENAME_COMPONENT(EMBREE_ROOT_DIR "${EMBREE_ROOT_DIR}" ABSOLUTE)
  18. SET(EMBREE_INCLUDE_DIRS ${EMBREE_ROOT_DIR}/include)
  19. SET(EMBREE_LIBRARY ${EMBREE_ROOT_DIR}/lib/libembree3.a)
  20. SET(EMBREE_LIBRARIES ${EMBREE_LIBRARY})
  21. MARK_AS_ADVANCED(embree_DIR)
  22. SET(EMBREE_VERSION 3.5.2)
  23. SET(EMBREE_VERSION_MAJOR 3)
  24. SET(EMBREE_VERSION_MINOR 5)
  25. SET(EMBREE_VERSION_PATCH 2)
  26. SET(EMBREE_VERSION_NOTE "")
  27. SET(EMBREE_MAX_ISA SSE2)
  28. SET(EMBREE_ISA_SSE2 ON)
  29. SET(EMBREE_ISA_SSE42 OFF)
  30. SET(EMBREE_ISA_AVX OFF)
  31. SET(EMBREE_ISA_AVX2 OFF)
  32. SET(EMBREE_ISA_AVX512KNL OFF)
  33. SET(EMBREE_ISA_AVX512SKX OFF)
  34. SET(EMBREE_BUILD_TYPE Release)
  35. SET(EMBREE_ISPC_SUPPORT OFF)
  36. SET(EMBREE_STATIC_LIB ON)
  37. SET(EMBREE_TUTORIALS OFF)
  38. SET(EMBREE_RAY_MASK OFF)
  39. SET(EMBREE_STAT_COUNTERS OFF)
  40. SET(EMBREE_BACKFACE_CULLING OFF)
  41. SET(EMBREE_FILTER_FUNCTION ON)
  42. SET(EMBREE_IGNORE_INVALID_RAYS OFF)
  43. SET(EMBREE_TASKING_SYSTEM INTERNAL)
  44. SET(EMBREE_GEOMETRY_TRIANGLE ON)
  45. SET(EMBREE_GEOMETRY_QUAD ON)
  46. SET(EMBREE_GEOMETRY_CURVE ON)
  47. SET(EMBREE_GEOMETRY_SUBDIVISION ON)
  48. SET(EMBREE_GEOMETRY_USER ON)
  49. SET(EMBREE_GEOMETRY_POINT ON)
  50. SET(EMBREE_RAY_PACKETS ON)
  51. IF(EMBREE_STATIC_LIB)
  52. FILE(GLOB CONFIG_FILES "${EMBREE_ROOT_DIR}/lib/cmake/embree-3.5.2/*-targets.cmake")
  53. FOREACH(f ${CONFIG_FILES})
  54. INCLUDE(${f})
  55. ENDFOREACH()
  56. LINK_DIRECTORIES(${EMBREE_ROOT_DIR}/lib)
  57. ENDIF()