]> andersk Git - libyaml.git/blob - CMakeLists.txt
Add a `.makefile` for immediate make targets
[libyaml.git] / CMakeLists.txt
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)
8 set (YAML_VERSION_PATCH 7)
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
17 add_executable (test-version tests/test-version.c)
18 target_link_libraries(test-version yaml)
19 add_test(NAME version COMMAND test-version)
20
21 add_executable (test-reader tests/test-reader.c)
22 target_link_libraries(test-reader yaml)
23 add_test(NAME reader COMMAND test-reader)
24
25 enable_testing()
This page took 0.0316 seconds and 5 git commands to generate.