2009-10-27 17:38:53 +03:00
|
|
|
file(GLOB test_headers [a-z]*.h)
|
|
|
|
|
file(GLOB test_sources [a-z]*.cpp)
|
2012-05-19 10:16:54 +04:00
|
|
|
file(GLOB test_core_sources core/[a-z]*.cpp)
|
2011-09-11 03:02:07 +04:00
|
|
|
|
2012-05-19 10:16:54 +04:00
|
|
|
list(APPEND test_sources ${test_core_sources})
|
2009-10-27 17:38:53 +03:00
|
|
|
|
2011-09-11 03:05:35 +04:00
|
|
|
include_directories(${YAML_CPP_SOURCE_DIR}/test)
|
|
|
|
|
|
2009-10-27 17:38:53 +03:00
|
|
|
add_executable(run-tests
|
|
|
|
|
${test_sources}
|
|
|
|
|
${test_headers}
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(run-tests yaml-cpp)
|
|
|
|
|
|
|
|
|
|
add_test(yaml-reader-test run-tests)
|