<commit_before>include_directories(
    ../googletest
    ../googletest/include
    ..
  )

set(
  Autowiring_SRCS
  Autowired.cpp
  Autowired.h
  Autowirer.cpp
  Autowirer.h
  CMakeLists.txt
  ContextMember.cpp
  ContextMember.h
  CoreContext.cpp
  CoreContext.h
  CoreThread.cpp
  CoreThread.h
  EventManager.h
  InstantiatorLink.h  
  GlobalCoreContext.cpp
  GlobalCoreContext.h
  Object.h
  SharedPtrWrap.cpp
  SharedPtrWrap.h
)

set(
  AutowiringTest_SRCS
  TestMain.cpp
  ContextCleanupTest.h
  ContextCleanupTest.cpp
  GlobalInitTest.h
  GlobalInitTest.cpp
  MultiInheritTest.h
  MultiInheritTest.cpp
  ScopeTest.h
  ScopeTest.cpp
  TestFixtures/SimpleObject.h
  TestFixtures/MultiInherit.h
)

ADD_MSVC_PRECOMPILED_HEADER("stdafx.h" "stdafx.cpp" Autowiring_SRCS)
add_library(Autowiring STATIC ${Autowiring_SRCS})

if(BUILD_TESTING)
  ADD_MSVC_PRECOMPILED_HEADER("stdafx.h" "stdafx.cpp" AutowiringTest_SRCS)
  add_executable(AutowiringTest ${AutowiringTest_SRCS} "../googletest/src/gtest-all.cc")
  if(NOT BUILD_WINDOWS)
    set(Boost_SYSTEM_LIBRARY libboost_system)
    add_library(${Boost_SYSTEM_LIBRARY} STATIC IMPORTED)
    set_property(TARGET ${Boost_SYSTEM_LIBRARY} PROPERTY IMPORTED_LOCATION ${Boost_LIBRARY_DIRS}/${Boost_SYSTEM_LIBRARY}${STATIC_LIBRARY_SUFFIX})
	
    set(Boost_THREAD_LIBRARY libboost_thread)
    add_library(${Boost_THREAD_LIBRARY} STATIC IMPORTED)
    set_property(TARGET ${Boost_THREAD_LIBRARY} PROPERTY IMPORTED_LOCATION ${Boost_LIBRARY_DIRS}/${Boost_THREAD_LIBRARY}${STATIC_LIBRARY_SUFFIX})

    target_link_libraries(AutowiringTest Autowiring ${Boost_SYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY})
  endif()
endif(BUILD_TESTING)<commit_msg>Break-fix for windows<commit_after>include_directories(
    ../googletest
    ../googletest/include
    ..
  )

set(
  Autowiring_SRCS
  Autowired.cpp
  Autowired.h
  Autowirer.cpp
  Autowirer.h
  CMakeLists.txt
  ContextMember.cpp
  ContextMember.h
  CoreContext.cpp
  CoreContext.h
  CoreThread.cpp
  CoreThread.h
  EventManager.h
  InstantiatorLink.h  
  GlobalCoreContext.cpp
  GlobalCoreContext.h
  Object.h
  SharedPtrWrap.cpp
  SharedPtrWrap.h
)

set(
  AutowiringTest_SRCS
  TestMain.cpp
  ContextCleanupTest.h
  ContextCleanupTest.cpp
  GlobalInitTest.h
  GlobalInitTest.cpp
  MultiInheritTest.h
  MultiInheritTest.cpp
  ScopeTest.h
  ScopeTest.cpp
  TestFixtures/SimpleObject.h
  TestFixtures/MultiInherit.h
)

ADD_MSVC_PRECOMPILED_HEADER("stdafx.h" "stdafx.cpp" Autowiring_SRCS)
add_library(Autowiring STATIC ${Autowiring_SRCS})

if(BUILD_TESTING)
  ADD_MSVC_PRECOMPILED_HEADER("stdafx.h" "stdafx.cpp" AutowiringTest_SRCS)
  add_executable(AutowiringTest ${AutowiringTest_SRCS} "../googletest/src/gtest-all.cc")
  if(NOT BUILD_WINDOWS)
    set(Boost_SYSTEM_LIBRARY libboost_system)
    add_library(${Boost_SYSTEM_LIBRARY} STATIC IMPORTED)
    set_property(TARGET ${Boost_SYSTEM_LIBRARY} PROPERTY IMPORTED_LOCATION ${Boost_LIBRARY_DIRS}/${Boost_SYSTEM_LIBRARY}${STATIC_LIBRARY_SUFFIX})
	
    set(Boost_THREAD_LIBRARY libboost_thread)
    add_library(${Boost_THREAD_LIBRARY} STATIC IMPORTED)
    set_property(TARGET ${Boost_THREAD_LIBRARY} PROPERTY IMPORTED_LOCATION ${Boost_LIBRARY_DIRS}/${Boost_THREAD_LIBRARY}${STATIC_LIBRARY_SUFFIX})
  endif()
  
  target_link_libraries(AutowiringTest Autowiring ${Boost_SYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY})
endif(BUILD_TESTING)
{'fraction_non_alphanumeric': 0.08626865671641791, 'fraction_numerical': 0.0, 'mean_word_length': 5.544921875, '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': '1013076', 'n_tokens_mistral': 1324, 'n_tokens_neox': 1281, 'n_words': 155}