Findxxhash.cmake 669 B

1234567891011121314151617181920
  1. #
  2. # Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
  3. #
  4. # SPDX-License-Identifier: Apache-2.0 OR MIT
  5. #
  6. #
  7. # this file actually ingests the library and defines targets.
  8. set(TARGET_WITH_NAMESPACE "3rdParty::xxhash")
  9. if (TARGET ${TARGET_WITH_NAMESPACE})
  10. return()
  11. endif()
  12. set(MY_NAME "xxhash")
  13. set(${MY_NAME}_INCLUDE_DIR ${CMAKE_CURRENT_LIST_DIR}/xxhash/include)
  14. add_library(${TARGET_WITH_NAMESPACE} INTERFACE IMPORTED GLOBAL)
  15. ly_target_include_system_directories(TARGET ${TARGET_WITH_NAMESPACE} INTERFACE ${${MY_NAME}_INCLUDE_DIR})
  16. set(${MY_NAME}_FOUND True)