<commit_before>cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
    "${CMAKE_SOURCE_DIR}/cmake/Modules/")

project(PCL)
string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWER)

include(${PCL_SOURCE_DIR}/cmake/pcl_options.cmake)
include(${PCL_SOURCE_DIR}/cmake/pcl_utils.cmake)
set(PCL_VERSION 2.0.0 CACHE STRING "PCL version")
DISSECT_VERSION()
GET_OS_INFO()
SET_INSTALL_DIRS()

set(PCL_RESOURCES_DIR ${PCL_SOURCE_DIR}/resources)
set(PCL_POINTCLOUDS_DIR ${PCL_RESOURCES_DIR}/pointclouds)

# Configure FindPCL.cmake
configure_file("${PCL_SOURCE_DIR}/FindPCL.cmake.in"
    "${PCL_BINARY_DIR}/FindPCL.cmake" @ONLY)
# Add an "uninstall" target
configure_file("${PCL_SOURCE_DIR}/cmake/uninstall_target.cmake.in"
    "${PCL_BINARY_DIR}/uninstall_target.cmake" IMMEDIATE @ONLY)
add_custom_target(uninstall "${CMAKE_COMMAND}" -P
    "${PCL_BINARY_DIR}/uninstall_target.cmake")

#TODO verify that this is the right place to put some extra flags...
add_definitions("-Wall -Wl,--no-undefined -fno-strict-aliasing")

# Find universal dependencies
# Find ROS
include(${PCL_SOURCE_DIR}/cmake/pcl_find_ros.cmake)
# Boost
include(${PCL_SOURCE_DIR}/cmake/pcl_find_boost.cmake)
if(CMAKE_BUILD_TYPE STREQUAL "Release")
    add_definitions(-DBOOST_DISABLE_ASSERTS)
endif(CMAKE_BUILD_TYPE STREQUAL "Release")
# SSE flags
include(${PCL_SOURCE_DIR}/cmake/pcl_find_sse.cmake)
PCL_CHECK_FOR_SSE()
# Eigen
find_package(Eigen REQUIRED)<commit_msg>Update: copy windows definitions from pcl-0.9 to here Note: will be moved to proper cmake file upon validation<commit_after>cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
    "${CMAKE_SOURCE_DIR}/cmake/Modules/")

project(PCL)
string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWER)

include(${PCL_SOURCE_DIR}/cmake/pcl_options.cmake)
include(${PCL_SOURCE_DIR}/cmake/pcl_utils.cmake)
set(PCL_VERSION 2.0.0 CACHE STRING "PCL version")
DISSECT_VERSION()
GET_OS_INFO()
SET_INSTALL_DIRS()

set(PCL_RESOURCES_DIR ${PCL_SOURCE_DIR}/resources)
set(PCL_POINTCLOUDS_DIR ${PCL_RESOURCES_DIR}/pointclouds)

# Configure FindPCL.cmake
configure_file("${PCL_SOURCE_DIR}/FindPCL.cmake.in"
    "${PCL_BINARY_DIR}/FindPCL.cmake" @ONLY)
# Add an "uninstall" target
configure_file("${PCL_SOURCE_DIR}/cmake/uninstall_target.cmake.in"
    "${PCL_BINARY_DIR}/uninstall_target.cmake" IMMEDIATE @ONLY)
add_custom_target(uninstall "${CMAKE_COMMAND}" -P
    "${PCL_BINARY_DIR}/uninstall_target.cmake")

#This is definitely not where it should, just for test before moving
if(UNIX OR CMAKE_SYSTEM_NAME STREQUAL "Darwin")
add_definitions("-Wall -Wl,--no-undefined -fno-strict-aliasing")
else(UNIX OR CMAKE_SYSTEM_NAME STREQUAL "Darwin")
add_definitions ("-W0 -DEIGEN_USE_NEW_STDVECTOR -DEIGEN2_SUPPORT")
endif(UNIX OR CMAKE_SYSTEM_NAME STREQUAL "Darwin")

# Find universal dependencies
# Find ROS
include(${PCL_SOURCE_DIR}/cmake/pcl_find_ros.cmake)
# Boost
include(${PCL_SOURCE_DIR}/cmake/pcl_find_boost.cmake)
if(CMAKE_BUILD_TYPE STREQUAL "Release")
    add_definitions(-DBOOST_DISABLE_ASSERTS)
endif(CMAKE_BUILD_TYPE STREQUAL "Release")
# SSE flags
include(${PCL_SOURCE_DIR}/cmake/pcl_find_sse.cmake)
PCL_CHECK_FOR_SSE()
# Eigen
find_package(Eigen REQUIRED)
{'fraction_non_alphanumeric': 0.12054539820266501, 'fraction_numerical': 0.004338394793926247, 'mean_word_length': 7.917127071823204, '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': '7169188', 'n_tokens_mistral': 1310, 'n_tokens_neox': 1267, 'n_words': 194}