-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCMakeLists.txt
31 lines (21 loc) · 987 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cmake_minimum_required(VERSION 2.8.12)
project(original C)
set(REVISION_V1 f221d8199d8f4bacdaf539b1a5138f2ce0dd578e)
set(REVISION_FINAL3 896d7c57f68d96938f718c0695c44866d14b48d6)
file(DOWNLOAD
https://raw.githubusercontent.com/wangyi-fudan/wyhash/${REVISION_V1}/wyhash.h
${CMAKE_CURRENT_BINARY_DIR}/wyhash_v1.h)
file(DOWNLOAD
https://raw.githubusercontent.com/wangyi-fudan/wyhash/${REVISION_FINAL3}/wyhash.h
${CMAKE_CURRENT_BINARY_DIR}/wyhash_final3.h)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_library(original_v1
${CMAKE_CURRENT_SOURCE_DIR}/lib_v1.c
${CMAKE_CURRENT_BINARY_DIR}/wyhash_v1.h)
add_library(original_final3
${CMAKE_CURRENT_SOURCE_DIR}/lib_final3.c
${CMAKE_CURRENT_BINARY_DIR}/wyhash_final3.h)
add_library(original_final3_32bit_mum
${CMAKE_CURRENT_SOURCE_DIR}/lib_final3_32bit_mum.c
${CMAKE_CURRENT_BINARY_DIR}/wyhash_final3.h)
install(TARGETS original_v1 original_final3 original_final3_32bit_mum DESTINATION .)