mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-16 22:27:41 -05:00
* Add xxHash example * Fix link error * run code formatters --------- Co-authored-by: Lars Melchior <lars.melchior@gmail.com>
21 lines
494 B
CMake
21 lines
494 B
CMake
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
|
|
|
|
project(CPMxxHashExample)
|
|
|
|
# ---- Dependencies ----
|
|
|
|
include(../../cmake/CPM.cmake)
|
|
|
|
CPMAddPackage(
|
|
GITHUB_REPOSITORY Cyan4973/xxHash
|
|
GIT_TAG v0.8.2
|
|
OPTIONS "XXHASH_BUILD_ENABLE_INLINE_API OFF" "XXHASH_BUILD_XXHSUM OFF"
|
|
SOURCE_SUBDIR cmake_unofficial
|
|
)
|
|
|
|
# ---- Executable ----
|
|
|
|
add_executable(CPMxxHashExample main.cpp)
|
|
target_compile_features(CPMxxHashExample PRIVATE cxx_std_17)
|
|
target_link_libraries(CPMxxHashExample xxHash::xxhash)
|