]> Devoid-pointer.net GitWeb - libHPCS.git/commitdiff
Build libHPCS as a shared library
authorMichal Malý <madcatxster@devoid-pointer.net>
Tue, 10 Mar 2015 21:12:49 +0000 (22:12 +0100)
committerMichal Malý <madcatxster@devoid-pointer.net>
Tue, 10 Mar 2015 21:12:49 +0000 (22:12 +0100)
CMakeLists.txt [new file with mode: 0644]

diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644 (file)
index 0000000..6146e81
--- /dev/null
@@ -0,0 +1,19 @@
+cmake_minimum_required(VERSION 2.6)
+include(TestBigEndian)
+
+project(libHPCS)
+
+add_definitions("-std=c89 -Wall")
+
+test_big_endian(HAVE_BIG_ENDIAN)
+if (${HAVE_BIG_ENDIAN})
+  add_definitions(-D_HPCS_BIG_ENDIAN)
+else()
+  add_definitions(-D_HPCS_LITTLE_ENDIAN)
+endif()
+
+set(libHPCS_SRCS
+    libhpcs.c)
+
+add_library(HPCS SHARED ${libHPCS_SRCS})
+