summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Simonov <xi@resolvent.net>2014-01-12 18:27:39 -0600
committerKirill Simonov <xi@resolvent.net>2014-01-12 18:27:39 -0600
commit0193c166b6f0c71f182052cf412f7bd22b6e4fd5 (patch)
tree6f2826892d733016914b987c74459b8c299b922a
parent324f06935c76f219910ea30eb94a92cb39568dd9 (diff)
downloadlibyaml-hg-0193c166b6f0c71f182052cf412f7bd22b6e4fd5.tar.gz
Added a basic CMake project.
-rw-r--r--CMakeLists.txt16
-rw-r--r--Makefile.am2
2 files changed, 17 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..d30c536
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Minimal CMake project for building a static library under Windows.
+
+cmake_minimum_required (VERSION 2.8)
+project (yaml C)
+
+set (YAML_VERSION_MAJOR 0)
+set (YAML_VERSION_MINOR 1)
+set (YAML_VERSION_PATCH 4)
+set (YAML_VERSION_STRING "${YAML_VERSION_MAJOR}.${YAML_VERSION_MINOR}.${YAML_VERSION_PATCH}")
+
+file (GLOB SRC src/*.c)
+
+include_directories (include win32)
+add_definitions (-DHAVE_CONFIG_H -DYAML_DECLARE_STATIC)
+add_library (yaml STATIC ${SRC})
+
diff --git a/Makefile.am b/Makefile.am
index 4111fdb..de2a3cd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,7 +3,7 @@
SUBDIRS = include src . tests win32
-EXTRA_DIST = README LICENSE doc/doxygen.cfg
+EXTRA_DIST = README LICENSE CMakeLists.txt doc/doxygen.cfg
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = yaml-0.1.pc