-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
29 lines (21 loc) · 897 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
cmake_minimum_required(VERSION 3.16)
project(prime-gap)
set(CMAKE_MODULE_PATH
${CMAKE_CURRENT_LIST_DIR}/cmake
${CMAKE_MODULE_PATH}
)
find_package(GMP REQUIRED)
message(STATUS "GMP_INCLUDES: ${GMP_INCLUDES} ${GMP_LIBRARIES}")
link_libraries(${GMP_LIBRARIES})
# When gmp 6.3 is out with mpz_prevprime support and in ubuntu
#link_libraries(gmp)
set(CMAKE_CXX_STANDARD 14)
add_executable(combined_sieve combined_sieve.cpp gap_common.cpp modulo_search.cpp)
add_executable(gap_stats gap_stats.cpp gap_common.cpp)
add_executable(gap_test_simple gap_test_simple.cpp gap_common.cpp)
add_executable(benchmark misc/benchmark.cpp modulo_search.cpp)
target_link_libraries(combined_sieve sqlite3)
target_link_libraries(gap_stats sqlite3)
target_link_libraries(gap_test_simple sqlite3)
target_link_libraries(combined_sieve primesieve)
target_link_libraries(benchmark primesieve)