summaryrefslogtreecommitdiffstats
path: root/libcnary/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'libcnary/CMakeLists.txt')
-rw-r--r--libcnary/CMakeLists.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/libcnary/CMakeLists.txt b/libcnary/CMakeLists.txt
new file mode 100644
index 0000000..bbbe8ce
--- /dev/null
+++ b/libcnary/CMakeLists.txt
@@ -0,0 +1,16 @@
+cmake_minimum_required(VERSION 2.6)
+
+SET(libcnary_SRC
+ iterator.c
+ list.c
+ node.c
+ node_iterator.c
+ node_list.c )
+
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
+
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
+ADD_LIBRARY(libcnary STATIC ${libcnary_SRC})
+
+SET_TARGET_PROPERTIES(libcnary PROPERTIES OUTPUT_NAME cnary)
+