Skip to content
Snippets Groups Projects
Select Git revision
  • 612e8e2d0105e9b069bb4a09cacb95497a942a41
  • 5.4 default protected
  • 5.5
  • dev/5.5
  • dev/5.4
  • dev/5.3_downgrade
  • feature/experimenttime_hack
  • 5.3 protected
  • _IntenSelect5.3
  • IntenSelect5.3
  • 4.27 protected
  • 4.26 protected
  • 5.0 protected
  • 4.22 protected
  • 4.21 protected
  • UE5.4-2024.1
  • UE5.4-2024.1-rc1
  • UE5.3-2023.1-rc3
  • UE5.3-2023.1-rc2
  • UE5.3-2023.1-rc
20 results

TurnComponent.cpp

Blame
  • cpplint.cmake 1.94 KiB
    #-------------------------------------------------------------------------------
    # Project Phoenix
    #
    # Copyright (c) 2017 RWTH Aachen University, Germany,
    # Virtual Reality & Immersive Visualisation Group.
    #-------------------------------------------------------------------------------
    #                                 License
    #                            only for this file
    #
    # Licensed under the 3-Clause BSD License (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    #
    #     https://opensource.org/licenses/BSD-3-Clause
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    #-------------------------------------------------------------------------------
    
    include(FindPythonInterp)
    if(NOT PYTHON_EXECUTABLE)
      message(SEND_ERROR
        " ERROR: Could not find any python interpreter. 
            Having a python interpreter is a mandatory requirement for cpplint. 
            CMake will not generate the project without it. ")
    endif()
    
    find_file(CPPLINT_COMMAND cpplint.py
      PATHS $ENV{PATH} $ENV{CPPLINT_DIR}
    )
    if(NOT CPPLINT_COMMAND)
      message(SEND_ERROR
        " ERROR: Could not find cpplint.py. 
            Having cpplint.py is a mandatory requirement. 
            CMake will not generate the project without it. 
            Add its location to the environments variables PATH or CPPLINT_DIR.")
    endif()
      
    function(ADD_TEST_CPPLINT)
      set(options )
      set(oneValueArgs NAME)
      set(multiValueArgs )
      cmake_parse_arguments(ADD_TEST_CPPLINT
        "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
    
      add_test(NAME "${ADD_TEST_CPPLINT_NAME}"
        COMMAND ${PYTHON_EXECUTABLE} ${CPPLINT_COMMAND}
        ${ADD_TEST_CPPLINT_UNPARSED_ARGUMENTS}
      )
    endfunction()