From f79577af4d6b139c7fdb61b335b29afb1d51956d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Tue, 10 Mar 2015 22:12:49 +0100 Subject: [PATCH] Build libHPCS as a shared library --- CMakeLists.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..6146e81 --- /dev/null +++ b/CMakeLists.txt @@ -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}) + -- 2.43.5