add_executable(lean_frontend_tst frontend.cpp) target_link_libraries(lean_frontend_tst ${EXTRA_LIBS}) add_test(lean_frontend ${CMAKE_CURRENT_BINARY_DIR}/lean_frontend_tst) set_tests_properties(lean_frontend PROPERTIES ENVIRONMENT "LEAN_PATH=${LEAN_BINARY_DIR}/shell") add_executable(lean_scanner scanner.cpp) target_link_libraries(lean_scanner ${EXTRA_LIBS}) add_test(lean_scanner ${CMAKE_CURRENT_BINARY_DIR}/lean_scanner) add_executable(lean_parser parser.cpp) target_link_libraries(lean_parser ${EXTRA_LIBS}) add_test(lean_parser ${CMAKE_CURRENT_BINARY_DIR}/lean_parser) set_tests_properties(lean_parser PROPERTIES ENVIRONMENT "LEAN_PATH=${LEAN_BINARY_DIR}/shell") add_executable(lean_pp pp.cpp) target_link_libraries(lean_pp ${EXTRA_LIBS}) add_test(lean_pp ${CMAKE_CURRENT_BINARY_DIR}/lean_pp) set_tests_properties(lean_pp PROPERTIES ENVIRONMENT "LEAN_PATH=${LEAN_BINARY_DIR}/shell")