Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cmake package for SIMD cpp library libsimdpp #748

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmake/configs/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ hunter_default_version(libogg VERSION 1.3.3-p0)
hunter_default_version(libpcre VERSION 8.41)
hunter_default_version(librtmp VERSION 2.4.0-p0)
hunter_default_version(libscrypt VERSION 1.21-p1)
hunter_default_version(libsimdpp VERSION 2.x-p0)
hunter_default_version(libsodium VERSION 1.0.16-p0)
hunter_default_version(libunibreak VERSION 4.0)
hunter_default_version(libusb VERSION 1.0.23)
Expand Down
33 changes: 33 additions & 0 deletions cmake/projects/libsimdpp/hunter.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright (c) 2017, Pawel Bylica

# !!! DO NOT PLACE HEADER GUARDS HERE !!!

include(hunter_add_version)
include(hunter_cacheable)
include(hunter_download)
include(hunter_pick_scheme)

hunter_add_version(
PACKAGE_NAME
libsimdpp
VERSION
2.1-p0
URL
"https://github.com/CHChang810716/libsimdpp/archive/v2.1-p0.tar.gz"
SHA1
0bf0a759fb4d41104e5d96bf85be8c2ef851d284
)
hunter_add_version(
PACKAGE_NAME
libsimdpp
VERSION
2.x-p0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this mystery version?

URL
"https://github.com/CHChang810716/libsimdpp/archive/c81f999e51edd9fce76ab9c0e858cf64c2a14034.zip"
SHA1
ad22abd3e376ab38ab022af8695232df2c4b02fd
)

hunter_pick_scheme(DEFAULT url_sha1_cmake)
hunter_cacheable(libsimdpp)
hunter_download(PACKAGE_NAME libsimdpp)
15 changes: 15 additions & 0 deletions examples/libsimdpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
cmake_minimum_required(VERSION 3.2)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please increase minimum version to 3.5

Suggested change
cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.5)


# Emulate HunterGate:
# * https://github.com/hunter-packages/gate
include("../common.cmake")

project(libsimdpp-test)

# DOCUMENTATION_START {
hunter_add_package(libsimdpp)
find_package(libsimdpp CONFIG REQUIRED)

add_executable(libsimdpp_test main.cpp)
target_link_libraries(libsimdpp_test libsimdpp::simdpp)
# DOCUMENTATION_END }
6 changes: 6 additions & 0 deletions examples/libsimdpp/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <simdpp/simd.h>
int main() {
simdpp::uint8<32> a;
simdpp::uint8<32> b;
auto c = a + b;
}
Loading