12345678910111213141516171819202122232425262728293031 |
- #
- # All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
- # its licensors.
- #
- # For complete copyright and license terms please see the LICENSE at the root of this
- # distribution (the "License"). All use of this software is governed by the License,
- # or, if provided, by the license below or the license accompanying this file. Do not
- # remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- #
- set(MY_NAME "cityhash")
- set(TARGET_WITH_NAMESPACE "3rdParty::${MY_NAME}")
- if (TARGET ${TARGET_WITH_NAMESPACE})
- return()
- endif()
- set(${MY_NAME}_INCLUDE_DIR ${CMAKE_CURRENT_LIST_DIR}/cityhash/include)
- set(${MY_NAME}_LIBS_DIR ${CMAKE_CURRENT_LIST_DIR}/cityhash/lib)
- set(${MY_NAME}_LIBRARY ${${MY_NAME}_LIBS_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}cityhash${CMAKE_STATIC_LIBRARY_SUFFIX})
- add_library(${TARGET_WITH_NAMESPACE} INTERFACE IMPORTED GLOBAL)
- ly_target_include_system_directories(TARGET ${TARGET_WITH_NAMESPACE} INTERFACE ${${MY_NAME}_INCLUDE_DIR})
- target_link_libraries(${TARGET_WITH_NAMESPACE}
- INTERFACE ${${MY_NAME}_LIBRARY}
- )
- set(${MY_NAME}_FOUND True)
|