Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

LibCDS #1194

Merged
merged 3 commits into from
Nov 13, 2017
Merged

LibCDS #1194

Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Add LibCDS package
  • Loading branch information
isaachier committed Nov 10, 2017
commit cdc464ab333097daf4541d34aa7a20a2aad7109d
1 change: 1 addition & 0 deletions cmake/configs/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ hunter_config(LLVM VERSION 4.0.1-p0) # Clang
hunter_config(LLVMCompilerRT VERSION 4.0.1-patched) # Clang
hunter_config(Leathers VERSION 0.1.6)
hunter_config(Leptonica VERSION 1.74.2-p4)
hunter_config(LibCDS VERSION 2.3.1)
hunter_config(Libcxx VERSION 3.6.2) # Clang
hunter_config(Libcxxabi VERSION 3.6.2) # Clang
hunter_config(Libevent VERSION 2.1.8-p3)
Expand Down
16 changes: 16 additions & 0 deletions cmake/projects/LibCDS/hunter.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# !!! 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 LibCDS
VERSION "2.3.1"
URL "https://github.com/isaachier/libcds/archive/hunter-2.3.1-p3.tar.gz"
SHA1 "8d039bf19b08d2b6506384f78a11e2cfdab02c3d")

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

include("../common.cmake")

project(download-LibCDS)

hunter_add_package(LibCDS)

find_package(LibCDS CONFIG REQUIRED)

add_executable(main main.cpp)
target_link_libraries(main LibCDS::cds) # Use LibCDS::cds-s for static library
6 changes: 6 additions & 0 deletions examples/LibCDS/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <cds/init.h>

int main()
{
return 0;
}