<commit_before>CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)

MESSAGE(STATUS "CREATE RDO_UTILS LIBRARY PROJECT")

# Find Boost
SET(Boost_USE_STATIC_LIBS   ON)
SET(Boost_USE_MULTITHREADED ON)
FIND_PACKAGE(Boost COMPONENTS system filesystem thread date_time REQUIRED)

# Find Boost
LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/smart_ptr)

SET(HEADER_FILES	
	rdocommon.h
	model_objects.h
	namespace.h
	rdoanimation.h
	rdodebug.h
	rdofile.h
	rdoidgenerator.h
	rdoindexedstack.h
	rdointerface.h
	rdomacros.h
	rdosingletone.h
	rdosmart_ptr_wrapper.h
	rdostream.h
	rdotime.h
	rdotypes.h
	stack.h
	static_assert.h
	supersubclass.h
	smart_ptr/counter_reference.h
	smart_ptr/interface_ptr.h
	smart_ptr/intrusive_ptr.h)

SET(INLITE_FILES
	stack.inl
	rdotime.inl
	rdofile.inl
	rdocommon.inl
	rdoanimation.inl
        rdointerface.inl
	smart_ptr/counter_reference.inl
	smart_ptr/interface_ptr.inl
	smart_ptr/intrusive_ptr.inl)

SET(SOURCE_FILES
	rdocommon.cpp
	rdofile.cpp)

ADD_LIBRARY(rdo_nix_utils ${HEADER_FILES} ${INLITE_FILES} ${SOURCE_FILES})
TARGET_LINK_LIBRARIES(rdo_nix_utils ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY})

SET(RDO_UTILS_TEST_PATH ${CMAKE_CURRENT_SOURCE_DIR}/test)
ADD_SUBDIRECTORY(${RDO_UTILS_TEST_PATH})

IF(MSVC) # lotions for windows #

SOURCE_GROUP(".animation" FILES 
	rdoanimation.h
	rdoanimation.inl)

SOURCE_GROUP(".common" FILES
	rdotypes.h
	namespace.h<commit_msg> - added macros for protective windows in the build system utils library<commit_after>CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)

MESSAGE(STATUS "CREATE  RDO_UTILS  LIBRARY  PROJECT")

# Find Boost
IF(MSVC)
    SET(Boost_USE_STATIC_LIBS   ON)
    SET(Boost_USE_MULTITHREADED ON)
ENDIF(MSVC)
FIND_PACKAGE(Boost COMPONENTS system filesystem thread date_time REQUIRED)

# Find Boost
LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/smart_ptr)

SET(HEADER_FILES	
	rdocommon.h
	model_objects.h
	namespace.h
	rdoanimation.h
	rdodebug.h
	rdofile.h
	rdoidgenerator.h
	rdoindexedstack.h
	rdointerface.h
	rdomacros.h
	rdosingletone.h
	rdosmart_ptr_wrapper.h
	rdostream.h
	rdotime.h
	rdotypes.h
	stack.h
	static_assert.h
	supersubclass.h
	smart_ptr/counter_reference.h
	smart_ptr/interface_ptr.h
	smart_ptr/intrusive_ptr.h)

SET(INLITE_FILES
	stack.inl
	rdotime.inl
	rdofile.inl
	rdocommon.inl
	rdoanimation.inl
        rdointerface.inl
	smart_ptr/counter_reference.inl
	smart_ptr/interface_ptr.inl
	smart_ptr/intrusive_ptr.inl)

SET(SOURCE_FILES
	rdocommon.cpp
	rdofile.cpp)

ADD_LIBRARY(rdo_nix_utils ${HEADER_FILES} ${INLITE_FILES} ${SOURCE_FILES})
SET_TARGET_PROPERTIES(rdo_nix_utils PROPERTIES LINKER_LANGUAGE CXX)
TARGET_LINK_LIBRARIES(rdo_nix_utils ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY})

SET(RDO_UTILS_TEST_PATH ${CMAKE_CURRENT_SOURCE_DIR}/test)
ADD_SUBDIRECTORY(${RDO_UTILS_TEST_PATH})

IF(MSVC) # lotions for windows #

SOURCE_GROUP(".animation" FILES 
	rdoanimation.h
	rdoanimation.inl)

SOURCE_GROUP(".common" FILES
	rdotypes.h
	namespace.h
{'fraction_non_alphanumeric': 0.08453735013833384, 'fraction_numerical': 0.0018444512757454657, 'mean_word_length': 6.766109785202864, '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': '5212134', 'n_tokens_mistral': 1429, 'n_tokens_neox': 1361, 'n_words': 184}