<commit_before>project(BlackBox)
message("Welcome to BlackBox!")
cmake_minimum_required(VERSION 2.8.9)
set(CMAKE_VERBOSE_MAKEFILE on)

###############################################################################################################################
### OPTIONS
option(OPTION_DEVEL "Development build" OFF)
option(OPTION_USE_TRACE "Logging" OFF)
option(OPTION_USE_TCL "TCL" OFF)

# use this for develoment, if you do not pass it from command line:
# development build means:
#  - logging enabled
#  - overriden install path
#  - not overwriting config .rc files (for most annoying ones so far)
#set(OPTION_DEVEL 1)

if (OPTION_DEVEL)
	set(CMAKE_INSTALL_PREFIX "c:/bb_devel")
else(OPTION_DEVEL)
endif(OPTION_DEVEL)

# possibly enable c++11 for gcc
#if (MINGW)
#  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x")
#endif (MINGW)

include_directories (.)
include_directories (bblib)

### find libraries
include("${CMAKE_CURRENT_SOURCE_DIR}/build/FindReleaseAndDebug.cmake")

if (OPTION_USE_TRACE)
	add_definitions ("-DTRACE_ENABLED")
	FIND_RELEASE_AND_DEBUG(TRACE logging.lib logging.lib ${CMAKE_CURRENT_SOURCE_DIR}/3rd_party/logging/Release ${CMAKE_CURRENT_SOURCE_DIR}/3rd_party/logging/Debug)

	#get_filename_component(UTF_BASE_NAME ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY_RELEASE} NAME_WE)
	#get_filename_component(UTF_PATH ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY_RELEASE} PATH)
	install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/3rd_party/logging/Release/bin/logging.dll
		DESTINATION .
		CONFIGURATIONS Release RelWithDebInfo
		)

	#get_filename_component(UTF_BASE_NAME_DEBUG ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY_DEBUG} NAME_WE)
	install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/3rd_party/logging/Debug/bin/logging.dll
		DESTINATION .
		CONFIGURATIONS Debug
		)

endif (OPTION_USE_TRACE)

message("bb generator=${CMAKE_GENERATOR}")<commit_msg>+ install logging.pdb on debug<commit_after>project(BlackBox)
message("Welcome to BlackBox!")
cmake_minimum_required(VERSION 2.8.9)
set(CMAKE_VERBOSE_MAKEFILE on)

###############################################################################################################################
### OPTIONS
option(OPTION_DEVEL "Development build" OFF)
option(OPTION_USE_TRACE "Logging" OFF)
option(OPTION_USE_TCL "TCL" OFF)

# use this for develoment, if you do not pass it from command line:
# development build means:
#  - logging enabled
#  - overriden install path
#  - not overwriting config .rc files (for most annoying ones so far)
#set(OPTION_DEVEL 1)

if (OPTION_DEVEL)
	set(CMAKE_INSTALL_PREFIX "c:/bb_devel")
else(OPTION_DEVEL)
endif(OPTION_DEVEL)

# possibly enable c++11 for gcc
#if (MINGW)
#  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x")
#endif (MINGW)

include_directories (.)
include_directories (bblib)

### find libraries
include("${CMAKE_CURRENT_SOURCE_DIR}/build/FindReleaseAndDebug.cmake")

if (OPTION_USE_TRACE)
	add_definitions ("-DTRACE_ENABLED")
	FIND_RELEASE_AND_DEBUG(TRACE logging.lib logging.lib ${CMAKE_CURRENT_SOURCE_DIR}/3rd_party/logging/Release ${CMAKE_CURRENT_SOURCE_DIR}/3rd_party/logging/Debug)

	#get_filename_component(UTF_BASE_NAME ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY_RELEASE} NAME_WE)
	#get_filename_component(UTF_PATH ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY_RELEASE} PATH)
	install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/3rd_party/logging/Release/bin/logging.dll DESTINATION .
		CONFIGURATIONS Release RelWithDebInfo
		)

	#get_filename_component(UTF_BASE_NAME_DEBUG ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY_DEBUG} NAME_WE)
	install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/3rd_party/logging/Debug/bin/logging.dll
		${CMAKE_CURRENT_SOURCE_DIR}/3rd_party/logging/Debug/bin/logging.pdb
		DESTINATION .
		CONFIGURATIONS Debug
		)

endif (OPTION_USE_TRACE)

message("bb generator=${CMAKE_GENERATOR}")
{'fraction_non_alphanumeric': 0.162901939941536, 'fraction_numerical': 0.006112144565506245, 'mean_word_length': 8.248157248157248, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3252120', 'n_tokens_mistral': 1364, 'n_tokens_neox': 1282, 'n_words': 224}