]> andersk Git - libyaml.git/blobdiff - CMakeLists.txt
add unit tests to cmake and appveyor config
[libyaml.git] / CMakeLists.txt
index 9bfe76185ee49dff8622a18e641b32d4c1a44c69..40db8824ecb25e63a91a19389464cc07df5a67c0 100644 (file)
@@ -14,3 +14,12 @@ include_directories (include win32)
 add_definitions (-DHAVE_CONFIG_H -DYAML_DECLARE_STATIC)
 add_library (yaml STATIC ${SRC})
 
+add_executable (test-version tests/test-version.c)
+target_link_libraries(test-version yaml)
+add_test(NAME version COMMAND test-version)
+
+add_executable (test-reader tests/test-reader.c)
+target_link_libraries(test-reader yaml)
+add_test(NAME reader COMMAND test-reader)
+
+enable_testing()
This page took 0.030772 seconds and 4 git commands to generate.