-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
executable file
·40 lines (28 loc) · 1.16 KB
/
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
31
32
33
34
35
36
37
38
39
40
cmake_minimum_required(VERSION 3.0.0)
if (NOT DEFINED URL_BASE)
set(URL_BASE "github.com")
endif ()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSTATICLIB -std=c++11")
set(CMAKE_DIR "${CMAKE_CURRENT_LIST_DIR}/cmake" CACHE PATH "The path to the cmake directory")
list(APPEND CMAKE_MODULE_PATH ${CMAKE_DIR})
include(HunterGate)
HunterGate(
URL "https://${URL_BASE}/FISCO-BCOS/hunter/archive/162ff7cde3d843e43afdab8fe3214275c35ef168.tar.gz"
SHA1 "0ba8099fe89beb0d44986c750fe0d44040725d99"
FILEPATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/config.cmake"
)
project(group-signature-lib)
# 指定动态链接库的源文件。假设你的源文件是 group_sig.cpp
# set(SOURCE_FILES group_sig.cpp)
set(GROUP_SIG_DIR "${CMAKE_CURRENT_LIST_DIR}" CACHE PATH "Path to the root directory for group sig")
# 生成动态链接库
# add_library(group_sig_lib SHARED ${GROUP_SIG_DIR})
# set_target_properties(group_sig_lib PROPERTIES LINKER_LANGUAGE CXX)
find_package(GMP REQUIRED)
include_directories(${GROUP_SIG_DIR})
include(CompilerSettings)
include(ProjectPbc)
include(ProjectPbcSig)
hunter_add_package(jsoncpp)
hunter_add_package(cryptopp)
add_subdirectory(group_sig)