]>
Commit | Line | Data |
---|---|---|
01e8dadf KS |
1 | # Minimal CMake project for building a static library under Windows. |
2 | ||
3 | cmake_minimum_required (VERSION 2.8) | |
4 | project (yaml C) | |
5 | ||
6 | set (YAML_VERSION_MAJOR 0) | |
7 | set (YAML_VERSION_MINOR 1) | |
686b2d85 | 8 | set (YAML_VERSION_PATCH 7) |
01e8dadf KS |
9 | set (YAML_VERSION_STRING "${YAML_VERSION_MAJOR}.${YAML_VERSION_MINOR}.${YAML_VERSION_PATCH}") |
10 | ||
11 | file (GLOB SRC src/*.c) | |
12 | ||
13 | include_directories (include win32) | |
14 | add_definitions (-DHAVE_CONFIG_H -DYAML_DECLARE_STATIC) | |
15 | add_library (yaml STATIC ${SRC}) | |
16 |