From 01e8dadf4c67ec14e16057d725caee991414a502 Mon Sep 17 00:00:00 2001 From: Kirill Simonov Date: Sun, 12 Jan 2014 18:27:39 -0600 Subject: Added a basic CMake project. --- CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') 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}) + -- cgit v1.2.1