Skip to content

Commit

Permalink
Added a basic CMake project.
Browse files Browse the repository at this point in the history
  • Loading branch information
xitology committed Jan 13, 2014
1 parent f54fc40 commit 01e8dad
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions 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})

2 changes: 1 addition & 1 deletion Makefile.am
Expand Up @@ -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
Expand Down

0 comments on commit 01e8dad

Please sign in to comment.