<commit_before>cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)
project(VeloView)

set (VV_VERSION_MAJOR 1)
set (VV_VERSION_MINOR 0)
set (VV_VERSION_PATCH 2)

find_package(ParaView REQUIRED)
include(${PARAVIEW_USE_FILE})
option(BUILD_SHARED_LIBS "Build shared libs" ON)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
if(UNIX)
  set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
else()
  set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
endif()
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")

# Setting this ensures that "make install" will leave rpaths to external
# libraries (not part of the build-tree e.g. Qt, ffmpeg, etc.) intact on
# "make install". This ensures that one can install a version of ParaView on the
# build machine without any issues. If this not desired, simply comment the
# following line and "make install" will strip all rpaths, which is default
# behavior.
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)


#------------------------------------------------------------------------------
# Setup install directories (we use names with VTK_ prefix, since ParaView now
# is built as a custom "VTK" library.
set(VV_INSTALL_RUNTIME_DIR bin)
if (WIN32)
  set(VV_INSTALL_LIBRARY_DIR bin)
else()
  set(VV_INSTALL_LIBRARY_DIR
    lib/velodyne-viewer-${VV_VERSION_MAJOR}.${VV_VERSION_MINOR})
endif()
set(VV_INSTALL_ARCHIVE_DIR
    lib/velodyne-viewer-${VV_VERSION_MAJOR}.${VV_VERSION_MINOR})


# Find and include PythonQt
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/CMake)
find_package(PythonQt REQUIRED)


set (source_files
  vvMainWindow.cxx
  vvMainWindow.h
  vvSelectionReaction.cxx
  vvSelectionReaction.h
  vvToggleSpreadSheetReaction.cxx
  vvToggleSpreadSheetReaction.h
  )

qt4_wrap_cpp(moc_source_files
  vvMainWindow.h
  vvSelectionReaction.h
  vvToggleSpreadSheetReaction.h
  )
<commit_msg>Add find_library for ParaView PythonQt plugin library<commit_after>cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)
project(VeloView)

set (VV_VERSION_MAJOR 1)
set (VV_VERSION_MINOR 0)
set (VV_VERSION_PATCH 2)

find_package(ParaView REQUIRED)
include(${PARAVIEW_USE_FILE})
option(BUILD_SHARED_LIBS "Build shared libs" ON)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
if(UNIX)
  set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
else()
  set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
endif()
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")

# Setting this ensures that "make install" will leave rpaths to external
# libraries (not part of the build-tree e.g. Qt, ffmpeg, etc.) intact on
# "make install". This ensures that one can install a version of ParaView on the
# build machine without any issues. If this not desired, simply comment the
# following line and "make install" will strip all rpaths, which is default
# behavior.
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)


#------------------------------------------------------------------------------
# Setup install directories (we use names with VTK_ prefix, since ParaView now
# is built as a custom "VTK" library.
set(VV_INSTALL_RUNTIME_DIR bin)
if (WIN32)
  set(VV_INSTALL_LIBRARY_DIR bin)
else()
  set(VV_INSTALL_LIBRARY_DIR
    lib/velodyne-viewer-${VV_VERSION_MAJOR}.${VV_VERSION_MINOR})
endif()
set(VV_INSTALL_ARCHIVE_DIR
    lib/velodyne-viewer-${VV_VERSION_MAJOR}.${VV_VERSION_MINOR})


# Find and include PythonQt
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/CMake)
find_package(PythonQt REQUIRED)

# Find the PythonQt plugin library in ParaView lib directory
get_target_property(paraview_lib_location pqCore LOCATION)
get_filename_component(paraview_lib_location ${paraview_lib_location} PATH)
find_library(PYTHONQTPLUGIN_LIBRARY pqPythonQtPlugin HINTS ${paraview_lib_location}  DOC "ParaView PythonQt plugin library")
mark_as_advanced(PYTHONQTPLUGIN_LIBRARY)


set (source_files
  vvMainWindow.cxx
  vvMainWindow.h
  vvSelectionReaction.cxx
  vvSelectionReaction.h
  vvToggleSpreadSheetReaction.cxx
  vvToggleSpreadSheetReaction.h
  )

qt4_wrap_cpp(moc_source_files
  vvMainWindow.h
  vvSelectionReaction.h
  vvToggleSpreadSheetReaction.h
  )

{'fraction_non_alphanumeric': 0.11566897209635106, 'fraction_numerical': 0.004292869067493442, 'mean_word_length': 5.231797919762259, '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': '1945527', 'n_tokens_mistral': 1556, 'n_tokens_neox': 1433, 'n_words': 327}