aPiecek | b5cda5e | 2023-06-29 11:26:28 +0200 | [diff] [blame] | 1 | find_program(PATH_TCLSH NAMES tclsh) |
2 | if(NOT PATH_TCLSH) | ||||
3 | message(WARNING "'tclsh' not found! The yangre test will not be available.") | ||||
4 | else() | ||||
5 | add_test(NAME "yangre" COMMAND "tclsh" "${CMAKE_CURRENT_SOURCE_DIR}/all.tcl") | ||||
6 | set_property(TEST "yangre" APPEND PROPERTY ENVIRONMENT "TESTS_DIR=${CMAKE_CURRENT_SOURCE_DIR}") | ||||
7 | set_property(TEST "yangre" APPEND PROPERTY ENVIRONMENT "YANGRE=${PROJECT_BINARY_DIR}") | ||||
8 | endif() |