aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 5625a4aa56c36fa655d3dab3bca29199ad2a6606 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
cmake_minimum_required(VERSION 2.8.11)
project(ecgen C)

add_subdirectory(lib)

file(GLOB SRC "src/math/*.c" "src/obj/*.c" "src/gen/*.c" "src/cm/*.c" "src/invalid/*.c" "src/io/*.c" "src/exhaustive/*.c" "src/misc/*.c" "src/util/*.c")
set(ECGEN_SRC "src/ecgen.c" ${SRC})

set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DDEBUG -g -Wall -Werror")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DNDEBUG -O3 -Wall")

include_directories(src)
include_directories(lib)

add_subdirectory(test)

add_executable(ecgen ${ECGEN_SRC})

target_link_libraries(ecgen pthread rt pari parson sha1)