17 lines
No EOL
368 B
CMake
17 lines
No EOL
368 B
CMake
cmake_minimum_required(VERSION 3.30)
|
|
project(goldbach_conjecture C)
|
|
|
|
set(CMAKE_C_STANDARD 11)
|
|
|
|
# Find SQLite3 library
|
|
find_package(SQLite3 REQUIRED)
|
|
|
|
# Add source files
|
|
add_executable(goldbach_conjecture
|
|
main.c
|
|
memory_info.c
|
|
bit_operations.c
|
|
prime_sieves.c)
|
|
|
|
# Link the SQLite3 library
|
|
target_link_libraries(goldbach_conjecture sqlite3) |