-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (33 loc) · 1.19 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
41
42
43
44
45
CMAKE_MINIMUM_REQUIRED(VERSION 3.14.0 FATAL_ERROR)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_C_STANDARD 99)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15")
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release"
CACHE STRING "Possible values are empty, Debug, Release, RelWithDebInfo, MinSizeRel, ..."
FORCE
)
endif()
project(witenc VERSION 1.0.0 LANGUAGES C CXX)
set(BUILD_WITENC_TESTS "1" CACHE STRING "")
set(BUILD_WITENC_BENCHMARKS "1" CACHE STRING "")
set(BUILD_WITENC_PYTHON_BINDINGS "1" CACHE STRING "")
message(STATUS "Build tests: ${BUILD_WITENC_TESTS}")
message(STATUS "Build benchmarks: ${BUILD_WITENC_BENCHMARKS}")
message(STATUS "Build python bindings: ${BUILD_WITENC_PYTHON_BINDINGS}")
include(FetchContent)
set(BLS_GIT_TAG "origin/main")
set(BLS_REPOSITORY "https://github.com/kofi-dalvik/bls-signatures.git")
message(STATUS "bls will be built from: ${BLS_GIT_TAG} and repository ${BLS_REPOSITORY}")
FetchContent_Declare(
bls
GIT_REPOSITORY ${BLS_REPOSITORY}
GIT_TAG ${BLS_GIT_TAG}
)
FetchContent_MakeAvailable(bls)
add_subdirectory(src)
if(BUILD_BLS_PYTHON_BINDINGS)
add_subdirectory(bindings/python)
endif()