1*387f9dfdSAndroid Build Coastguard Worker# Copyright (c) PLUMgrid, Inc. 2*387f9dfdSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License") 3*387f9dfdSAndroid Build Coastguard Workerconfigure_file(wrapper.sh.in "${CMAKE_CURRENT_BINARY_DIR}/wrapper.sh" @ONLY) 4*387f9dfdSAndroid Build Coastguard Worker 5*387f9dfdSAndroid Build Coastguard Workerset(TEST_WRAPPER ${CMAKE_CURRENT_BINARY_DIR}/wrapper.sh) 6*387f9dfdSAndroid Build Coastguard Worker 7*387f9dfdSAndroid Build Coastguard Workeradd_test(NAME style-check COMMAND ${CMAKE_SOURCE_DIR}/scripts/c-style-check.sh) 8*387f9dfdSAndroid Build Coastguard Workerset_tests_properties(style-check PROPERTIES PASS_REGULAR_EXPRESSION ".*") 9*387f9dfdSAndroid Build Coastguard Worker 10*387f9dfdSAndroid Build Coastguard Workerif(ENABLE_CLANG_JIT) 11*387f9dfdSAndroid Build Coastguard Workeradd_subdirectory(cc) 12*387f9dfdSAndroid Build Coastguard Workeradd_subdirectory(python) 13*387f9dfdSAndroid Build Coastguard Workeradd_subdirectory(lua) 14*387f9dfdSAndroid Build Coastguard Workerendif() 15