-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
26 lines (22 loc) · 935 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
cmake_minimum_required(VERSION 3.16)
project(SIDH_CPP)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -stdlib=libc++")
if(APPLE)
include_directories(/usr/local/Cellar/gmp/6.2.1/include)
include_directories(" /usr/local/Cellar/gmp/6.2.1/lib")
include_directories("/usr/local/include")
set(GMP_DIR "/usr/local/Cellar/gmp/6.2.1")
endif(APPLE)
if(UNIX AND NOT APPLE)
include_directories(/home/linuxbrew/.linuxbrew/Cellar/gmp/6.2.1/include)
include_directories(" /home/linuxbrew/.linuxbrew/Cellar/gmp/6.2.1/lib")
include_directories("/usr/local/include")
set(GMP_DIR "/home/linuxbrew/.linuxbrew/Cellar/gmp/6.2.1")
endif(UNIX AND NOT APPLE)
add_executable(SIDH_CPP main.cpp BigInt.h BMath.h BPrime.h test.h DTS.h)
include_directories(${PROJECT_NAME} ${GMP_DIR}/include)
target_link_libraries(${PROJECT_NAME}
"${GMP_DIR}/lib/libgmp.a"
"${GMP_DIR}/lib/libgmpxx.a"
)