<commit_before>#/*============================================================================
#
#  BARD: Basic Augmented Reality Demo.
#
#  Copyright (c) University College London (UCL). All rights reserved.
#
#  This software is distributed WITHOUT ANY WARRANTY; without even
#  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
#  PURPOSE.
#
#  See LICENSE.txt in the top level directory for details.
#
#============================================================================*/

set(VIDEO_SRCS
  bardFileIO.cxx
  bardMaths.cxx
  bardVideoSourceInterface.cxx
  bardOpenCVVideoSource.cxx
  bardCalibratedCamera.cxx
  bardTagData.cxx
  bardTagProcessingInterface.cxx
  bardArucoProcessor.cxx
  bardModelData.cxx
  bardRegistrationInterface.cxx
  bardPnPRegistration.cxx
  bardTrackingModelInterface.cxx
  bardTrackingModelData.cxx
  bardVTKModelInterface.cxx
  bardVTKModelPipeline.cxx
)

SET(QT_SOURCES_CPP
bardMainWindow.cxx
bardMainRenderingWidget.cxx
)

SET(QT_SOURCES_H
bardMainWindow.h
bardMainRenderingWidget.h
)

SET(QT_SOURCES_UI
bardMainWindow.ui
)

# Generate QT stuff.
QT4_WRAP_UI(QT_SOURCES_UI_H ${QT_SOURCES_UI} )
QT4_WRAP_CPP(QT_MOC_FILES ${QT_SOURCES_H})
SOURCE_GROUP("Generated Files" FILES ${QT_MOC_FILES})
include_directories(${CMAKE_CURRENT_BINARY_DIR})

foreach(BARD_APP bard bardGrabber bardCameraCalibration bardPivotCalibration bardProcrustes  )
  add_executable(${BARD_APP} ${BARD_APP}.cxx ${VIDEO_SRCS} ${QT_SOURCES_CPP} ${QT_SOURCES_H} ${QT_SOURCES_UI_H} ${QT_MOC_FILES})
  target_link_libraries(${BARD_APP} ${ALL_LIBS})
endforeach()
<commit_msg>Issue #5: Use Qt5 wrappers rather than Qt4.<commit_after>#/*============================================================================
#
#  BARD: Basic Augmented Reality Demo.
#
#  Copyright (c) University College London (UCL). All rights reserved.
#
#  This software is distributed WITHOUT ANY WARRANTY; without even
#  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
#  PURPOSE.
#
#  See LICENSE.txt in the top level directory for details.
#
#============================================================================*/

set(VIDEO_SRCS
  bardFileIO.cxx
  bardMaths.cxx
  bardVideoSourceInterface.cxx
  bardOpenCVVideoSource.cxx
  bardCalibratedCamera.cxx
  bardTagData.cxx
  bardTagProcessingInterface.cxx
  bardArucoProcessor.cxx
  bardModelData.cxx
  bardRegistrationInterface.cxx
  bardPnPRegistration.cxx
  bardTrackingModelInterface.cxx
  bardTrackingModelData.cxx
  bardVTKModelInterface.cxx
  bardVTKModelPipeline.cxx
)

SET(QT_SOURCES_CPP
bardMainWindow.cxx
bardMainRenderingWidget.cxx
)

SET(QT_SOURCES_H
bardMainWindow.h
bardMainRenderingWidget.h
)

SET(QT_SOURCES_UI
bardMainWindow.ui
)

# Generate QT stuff.
QT5_WRAP_UI(QT_SOURCES_UI_H ${QT_SOURCES_UI} )
QT5_WRAP_CPP(QT_MOC_FILES ${QT_SOURCES_H})
SOURCE_GROUP("Generated Files" FILES ${QT_MOC_FILES})
include_directories(${CMAKE_CURRENT_BINARY_DIR})

foreach(BARD_APP bard bardGrabber bardCameraCalibration bardPivotCalibration bardProcrustes  )
  add_executable(${BARD_APP} ${BARD_APP}.cxx ${VIDEO_SRCS} ${QT_SOURCES_CPP} ${QT_SOURCES_H} ${QT_SOURCES_UI_H} ${QT_MOC_FILES})
  target_link_libraries(${BARD_APP} ${ALL_LIBS})
endforeach()

{'fraction_non_alphanumeric': 0.16977032898820607, 'fraction_numerical': 0.0021725636250775914, 'mean_word_length': 7.201017811704834, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4767907', 'n_tokens_mistral': 1212, 'n_tokens_neox': 1092, 'n_words': 199}