mirror of
https://github.com/simon987/pg_hamming.git
synced 2025-04-04 07:22:58 +00:00
16 lines
299 B
CMake
16 lines
299 B
CMake
cmake_minimum_required(VERSION 3.13)
|
|
project(hamming C)
|
|
|
|
set(CMAKE_C_STANDARD 99)
|
|
|
|
find_package(PostgreSQL REQUIRED)
|
|
|
|
include_directories(${PostgreSQL_INCLUDE_DIRS})
|
|
|
|
add_library(hamming SHARED hamming.c)
|
|
target_compile_options(
|
|
hamming
|
|
PRIVATE
|
|
-Ofast
|
|
-march=native
|
|
) |