<commit_before>cmake_minimum_required(VERSION 2.6)

set(SOURCES
	AdditionalMessage.cpp
	Asserter.cpp
	BeOsDynamicLibraryManager.cpp
	BriefTestProgressListener.cpp
	CompilerOutputter.cpp
	DefaultProtector.cpp
	DefaultProtector.h
	DynamicLibraryManager.cpp
	DynamicLibraryManagerException.cpp
	Exception.cpp
	Message.cpp
	Options.cpp
	Options.h
	PlugInManager.cpp
	PlugInParameters.cpp
	Protector.cpp
	ProtectorChain.cpp
	ProtectorChain.h
	ProtectorContext.h
	RepeatedTest.cpp
	ShlDynamicLibraryManager.cpp
	SourceLine.cpp
	StringTools.cpp
	SynchronizedObject.cpp
	Test.cpp
	TestAssert.cpp
	TestCase.cpp
	TestCaseDecorator.cpp
	TestComposite.cpp
	TestDecorator.cpp
	TestFactoryRegistry.cpp
	TestFailure.cpp
	TestLeaf.cpp
	TestNamer.cpp
	TestPath.cpp
	TestPlugInDefaultImpl.cpp
	TestResult.cpp
	TestResultCollector.cpp
	TestRunner.cpp
	TestSetUp.cpp
	TestSuccessListener.cpp
	TestSuite.cpp
	TestSuiteBuilderContext.cpp
	TextOutputter.cpp
	TextTestProgressListener.cpp
	TextTestResult.cpp
	TextTestRunner.cpp
	TypeInfoHelper.cpp
	XmlDocument.cpp
	XmlElement.cpp
	XmlOutputter.cpp
	XmlOutputterHook.cpp
)

if(UNIX)
	list(APPEND SOURCES
		UnixDynamicLibraryManager.cpp
	)
else()
	list(APPEND SOURCES
		DllMain.cpp
		Win32DynamicLibraryManager.cpp
	)
endif()

include_directories(
	${CMAKE_CURRENT_SOURCE_DIR}
)

add_library(cppunit STATIC ${SOURCES})
install(TARGETS cppunit ARCHIVE DESTINATION lib)

<commit_msg>WIP installing windows pbd files<commit_after>cmake_minimum_required(VERSION 2.6)

set(SOURCES
	AdditionalMessage.cpp
	Asserter.cpp
	BeOsDynamicLibraryManager.cpp
	BriefTestProgressListener.cpp
	CompilerOutputter.cpp
	DefaultProtector.cpp
	DefaultProtector.h
	DynamicLibraryManager.cpp
	DynamicLibraryManagerException.cpp
	Exception.cpp
	Message.cpp
	Options.cpp
	Options.h
	PlugInManager.cpp
	PlugInParameters.cpp
	Protector.cpp
	ProtectorChain.cpp
	ProtectorChain.h
	ProtectorContext.h
	RepeatedTest.cpp
	ShlDynamicLibraryManager.cpp
	SourceLine.cpp
	StringTools.cpp
	SynchronizedObject.cpp
	Test.cpp
	TestAssert.cpp
	TestCase.cpp
	TestCaseDecorator.cpp
	TestComposite.cpp
	TestDecorator.cpp
	TestFactoryRegistry.cpp
	TestFailure.cpp
	TestLeaf.cpp
	TestNamer.cpp
	TestPath.cpp
	TestPlugInDefaultImpl.cpp
	TestResult.cpp
	TestResultCollector.cpp
	TestRunner.cpp
	TestSetUp.cpp
	TestSuccessListener.cpp
	TestSuite.cpp
	TestSuiteBuilderContext.cpp
	TextOutputter.cpp
	TextTestProgressListener.cpp
	TextTestResult.cpp
	TextTestRunner.cpp
	TypeInfoHelper.cpp
	XmlDocument.cpp
	XmlElement.cpp
	XmlOutputter.cpp
	XmlOutputterHook.cpp
)

if(UNIX)
	list(APPEND SOURCES
		UnixDynamicLibraryManager.cpp
	)
else()
	list(APPEND SOURCES
		DllMain.cpp
		Win32DynamicLibraryManager.cpp
	)
endif()

include_directories(
	${CMAKE_CURRENT_SOURCE_DIR}
)

add_library(cppunit STATIC ${SOURCES})
install(TARGETS cppunit ARCHIVE DESTINATION lib)


if(WIN32)
	add_custom_command(
		TARGET cppunit
		POST_BUILD
		COMMAND dir /s
		WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
	)

	install(
		FILES "${CMAKE_CURRENT_BINARY_DIR}/$(CONFIGURATION)/cppunit.pbd"
		DESTINATION lib
		CONFIGURATIONS Debug RelWithDebInfo
	)
endif()
{'fraction_non_alphanumeric': 0.06211779851947216, 'fraction_numerical': 0.0032185387833923397, 'mean_word_length': 5.8307692307692305, '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': '4481941', 'n_tokens_mistral': 1158, 'n_tokens_neox': 1106, 'n_words': 173}