Blame yaml-filter/CMakeLists.txt

Packit Service 569379
cmake_minimum_required(VERSION 2.8)
Packit Service 569379
Packit Service 569379
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
Packit Service 569379
Packit Service 569379
include(FindPkgConfig)
Packit Service 569379
pkg_check_modules(YAML yaml-0.1)
Packit Service 569379
find_package(codecov)
Packit Service 569379
Packit Service 569379
include_directories(${YAML_INCLUDE_DIRS})
Packit Service 569379
Packit Service 569379
add_library(yaml-path yaml-path.c)
Packit Service 569379
target_link_libraries(yaml-path ${YAML_LIBRARIES})
Packit Service 569379
Packit Service 569379
add_executable(ya yaml.c)
Packit Service 569379
target_link_libraries(ya yaml-path)
Packit Service 569379
add_coverage(ya)
Packit Service 569379
Packit Service 569379
add_executable(yamlp yamlp.c)
Packit Service 569379
target_link_libraries(yamlp yaml-path)
Packit Service 569379
add_coverage(yamlp)
Packit Service 569379
Packit Service 569379
add_coverage(yaml-path)
Packit Service 569379
Packit Service 569379
install(TARGETS ya RUNTIME DESTINATION bin)
Packit Service 569379
install(TARGETS yamlp RUNTIME DESTINATION bin)
Packit Service 569379
Packit Service 569379
add_executable(test-path-segments test-path-segments.c yaml-path.c)
Packit Service 569379
add_coverage(test-path-segments)
Packit Service 569379
Packit Service 569379
add_executable(test-paths test-paths.c)
Packit Service 569379
target_link_libraries(test-paths yaml-path)
Packit Service 569379
add_coverage(test-paths)
Packit Service 569379
list(APPEND LCOV_REMOVE_PATTERNS "'${CMAKE_SOURCE_DIR}/test-*'")
Packit Service 569379
Packit Service 569379
coverage_evaluate()
Packit Service 569379
Packit Service 569379
enable_testing()
Packit Service 569379
add_test(NAME "test-path-segments" COMMAND ${CMAKE_BINARY_DIR}/test-path-segments)
Packit Service 569379
add_test(NAME "test-paths" COMMAND ${CMAKE_BINARY_DIR}/test-paths)
Packit Service 569379
add_test(NAME "test-yamlp" COMMAND ${CMAKE_SOURCE_DIR}/test-yamlp.sh)