Skip to content

Commit

Permalink
third-party: add xxHash config
Browse files Browse the repository at this point in the history
Add CMake configuration for xxHash library
  • Loading branch information
arogge committed Feb 24, 2023
1 parent 0c47c09 commit 89089c3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
3 changes: 2 additions & 1 deletion third-party/CMakeLists.txt
@@ -1,6 +1,6 @@
# BAREOS® - Backup Archiving REcovery Open Sourced
#
# Copyright (C) 2022-2022 Bareos GmbH & Co. KG
# Copyright (C) 2022-2023 Bareos GmbH & Co. KG
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of version three of the GNU Affero General Public
Expand All @@ -21,3 +21,4 @@ message("Entering ${CMAKE_CURRENT_SOURCE_DIR}")

add_subdirectory(CLI11 EXCLUDE_FROM_ALL)
add_subdirectory(fmt EXCLUDE_FROM_ALL)
include(./xxHash.cmake)
22 changes: 22 additions & 0 deletions third-party/xxHash.cmake
@@ -0,0 +1,22 @@
# BAREOS® - Backup Archiving REcovery Open Sourced
#
# Copyright (C) 2023-2023 Bareos GmbH & Co. KG
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of version three of the GNU Affero General Public
# License as published by the Free Software Foundation and included
# in the file LICENSE.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.

add_library(xxhash INTERFACE)
target_include_directories(xxhash INTERFACE xxHash)
add_library(xxHash::xxhash ALIAS xxhash)

0 comments on commit 89089c3

Please sign in to comment.