]> andersk Git - libyaml.git/blame - CMakeLists.txt
Utilize Travis CI's OSX builders
[libyaml.git] / CMakeLists.txt
CommitLineData
01e8dadf
KS
1# Minimal CMake project for building a static library under Windows.
2
3cmake_minimum_required (VERSION 2.8)
4project (yaml C)
5
6set (YAML_VERSION_MAJOR 0)
7set (YAML_VERSION_MINOR 1)
686b2d85 8set (YAML_VERSION_PATCH 7)
01e8dadf
KS
9set (YAML_VERSION_STRING "${YAML_VERSION_MAJOR}.${YAML_VERSION_MINOR}.${YAML_VERSION_PATCH}")
10
11file (GLOB SRC src/*.c)
12
13include_directories (include win32)
14add_definitions (-DHAVE_CONFIG_H -DYAML_DECLARE_STATIC)
15add_library (yaml STATIC ${SRC})
16
6dfd50f1
MG
17add_executable (test-version tests/test-version.c)
18target_link_libraries(test-version yaml)
19add_test(NAME version COMMAND test-version)
20
21add_executable (test-reader tests/test-reader.c)
22target_link_libraries(test-reader yaml)
23add_test(NAME reader COMMAND test-reader)
24
25enable_testing()
This page took 0.672736 seconds and 5 git commands to generate.