aboutsummaryrefslogtreecommitdiff
path: root/lib/CMakeLists.txt
diff options
context:
space:
mode:
authorJ08nY2017-10-14 14:19:02 +0200
committerJ08nY2017-10-14 23:11:11 +0200
commit5fe4358eeb74cd82008c336fc4f634548e5e3393 (patch)
tree8ea32d24ac4c6a62a026de3e77aaa68690d927b8 /lib/CMakeLists.txt
parent4dece41c236a7e92ab04205e8b6e076a2514a528 (diff)
downloadecgen-5fe4358eeb74cd82008c336fc4f634548e5e3393.tar.gz
ecgen-5fe4358eeb74cd82008c336fc4f634548e5e3393.tar.zst
ecgen-5fe4358eeb74cd82008c336fc4f634548e5e3393.zip
Diffstat (limited to 'lib/CMakeLists.txt')
-rw-r--r--lib/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
new file mode 100644
index 0000000..c97b838
--- /dev/null
+++ b/lib/CMakeLists.txt
@@ -0,0 +1,11 @@
+cmake_minimum_required(VERSION 2.8.11)
+project(ecgen_libs C)
+
+set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DDEBUG -g -Wall -Werror -pedantic")
+set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DNDEBUG -O3 -Wall")
+
+file(GLOB PARSON_SRC "parson/*.c")
+file(GLOB SHA1_SRC "sha1/*.c")
+
+add_library(parson STATIC ${PARSON_SRC})
+add_library(sha1 STATIC ${SHA1_SRC}) \ No newline at end of file