<commit_before>Project(irtkCUcommonLib)

cmake_minimum_required(VERSION 2.6)

#if IRTK_SOURCE_DIR is set, we are building within the IRTK source tree
#but we leave it as option in case somewone wants to do something strange
if(IRTK_SOURCE_DIR)
SET(BUILD_OUT_OF_IRTK_TREE FALSE)
#OPTION(BUILD_OUT_OF_IRTK_TREE "build outside of the IRTK main source tree." ON)
else(IRTK_SOURCE_DIR)
SET(BUILD_OUT_OF_IRTK_TREE TRUE)
#OPTION(BUILD_OUT_OF_IRTK_TREE "build outside of the IRTK main source tree." OFF)
endif(IRTK_SOURCE_DIR)

SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ./cmake)

if (WIN32)
  # for msvc 8 deprecated warning removal
  add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
  add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
  add_definitions(-D_CRT_SECURE_NO_DEPRECATE_GLOBALS)
  add_definitions(-DWIN32 -D_WIN32)
  add_definitions(-DNOMINMAX)

  #set(CMAKE_DEBUG_POSTFIX "D")

  set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /NODEFAULTLIB:LIBCMT.lib;libcmtd.lib")
endif(WIN32)

if (WIN32)
  add_definitions(-DGL_GLEXT_PROTOTYPES -bigobj)
endif()

# Cuda:
set(CUDA_BUILD_EMULATION OFF CACHE BOOL "enable emulation mode")<commit_msg>testing cmake flags<commit_after>Project(irtkCUcommonLib)

cmake_minimum_required(VERSION 2.6)

#if IRTK_SOURCE_DIR is set, we are building within the IRTK source tree
#but we leave it as option in case somewone wants to do something strange
if(IRTK_SOURCE_DIR)
SET(BUILD_OUT_OF_IRTK_TREE FALSE)
#OPTION(BUILD_OUT_OF_IRTK_TREE "build outside of the IRTK main source tree." ON)
else(IRTK_SOURCE_DIR)
SET(BUILD_OUT_OF_IRTK_TREE TRUE)
#OPTION(BUILD_OUT_OF_IRTK_TREE "build outside of the IRTK main source tree." OFF)
endif(IRTK_SOURCE_DIR)

SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ./cmake)

if (WIN32)
  # for msvc 8 deprecated warning removal
  add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
  add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
  add_definitions(-D_CRT_SECURE_NO_DEPRECATE_GLOBALS)
  add_definitions(-DWIN32 -D_WIN32)
  add_definitions(-DNOMINMAX)

  #set(CMAKE_DEBUG_POSTFIX "D")

  set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /NODEFAULTLIB:LIBCMT.lib;libcmtd.lib")
else(WIN32)
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x)
endif(WIN32)

if (WIN32)
  add_definitions(-DGL_GLEXT_PROTOTYPES -bigobj)
endif()

# Cuda:
set(CUDA_BUILD_EMULATION OFF CACHE BOOL "enable emulation mode")
{'fraction_non_alphanumeric': 0.08322717622080679, 'fraction_numerical': 0.012314225053078557, 'mean_word_length': 7.444444444444445, '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': '5295179', 'n_tokens_mistral': 993, 'n_tokens_neox': 941, 'n_words': 189}