2
0

Findxxhash.cmake 671 B

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