<commit_before>cmake_minimum_required(VERSION 2.8)
set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE TYPE INTERNAL FORCE)
project("lms7api")
#include modules for finding FFTW and CyAPI
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
cmake_policy(SET CMP0015 OLD)
if(${CMAKE_MAJOR_VERSION} GREATER 2)
	cmake_policy(SET CMP0043 NEW)
endif()
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
if(CMAKE_COMPILER_IS_GNUCXX)
    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
endif()

# set up include-directories
include_directories(
  "${PROJECT_SOURCE_DIR}"
  "${PROJECT_BINARY_DIR}"  
  cpp-feather-ini-parser
 )

set(LMS7002M_src_files
    LMS7002M.cpp
	LMS7002M_parameters.cpp
	LMS7002M_statuses.cpp
	LMS7002M_filtersCalibration.cpp    
	lmsComms.cpp
	LMS7002M_RegistersMap.cpp
)

set(ENABLE_USB_CONNECTION "YES" CACHE BOOL INTERNAL)
set(ENABLE_SPI_CONNECTION "NO" CACHE BOOL INTERNAL)
set(CONNECTION_MANAGER_DIR connectionManager)
set(connectionManager_src_files
	${CONNECTION_MANAGER_DIR}/ConnectionManager.cpp
	${CONNECTION_MANAGER_DIR}/ConnectionCOM.cpp
	${CONNECTION_MANAGER_DIR}/ConnectionManager.h
	${CONNECTION_MANAGER_DIR}/ConnectionCOM.h
)
if(ENABLE_USB_CONNECTION)
	list(APPEND connectionManager_src_files ${CONNECTION_MANAGER_DIR}/ConnectionUSB.cpp ${CONNECTION_MANAGER_DIR}/ConnectionUSB.h)
    add_definitions(-DENABLE_USB_CONNECTION)
endif()<commit_msg>check for cpp-feather-ini-parser submodule ready<commit_after>cmake_minimum_required(VERSION 2.8)
set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE TYPE INTERNAL FORCE)
project("lms7api")
#include modules for finding FFTW and CyAPI
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
cmake_policy(SET CMP0015 OLD)
if(${CMAKE_MAJOR_VERSION} GREATER 2)
	cmake_policy(SET CMP0043 NEW)
endif()
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
if(CMAKE_COMPILER_IS_GNUCXX)
    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
endif()

if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/cpp-feather-ini-parser/INI.h)
    message(FATAL_ERROR "cpp-feather-ini-parser submodule not configured\n$ git submodule init && git submodule update")
endif ()

# set up include-directories
include_directories(
  "${PROJECT_SOURCE_DIR}"
  "${PROJECT_BINARY_DIR}"  
  cpp-feather-ini-parser
 )

set(LMS7002M_src_files
    LMS7002M.cpp
	LMS7002M_parameters.cpp
	LMS7002M_statuses.cpp
	LMS7002M_filtersCalibration.cpp    
	lmsComms.cpp
	LMS7002M_RegistersMap.cpp
)

set(ENABLE_USB_CONNECTION "YES" CACHE BOOL INTERNAL)
set(ENABLE_SPI_CONNECTION "NO" CACHE BOOL INTERNAL)
set(CONNECTION_MANAGER_DIR connectionManager)
set(connectionManager_src_files
	${CONNECTION_MANAGER_DIR}/ConnectionManager.cpp
	${CONNECTION_MANAGER_DIR}/ConnectionCOM.cpp
	${CONNECTION_MANAGER_DIR}/ConnectionManager.h
	${CONNECTION_MANAGER_DIR}/ConnectionCOM.h
)
if(ENABLE_USB_CONNECTION)
	list(APPEND connectionManager_src_files ${CONNECTION_MANAGER_DIR}/ConnectionUSB.cpp ${CONNECTION_MANAGER_DIR}/ConnectionUSB.h)
    add_definitions(-DENABLE_USB_CONNECTION)
endif()
{'fraction_non_alphanumeric': 0.09700756330154554, 'fraction_numerical': 0.024334100624794474, 'mean_word_length': 8.246200607902736, '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': '4010772', 'n_tokens_mistral': 1235, 'n_tokens_neox': 1156, 'n_words': 165}