<commit_before>cmake_minimum_required (VERSION 2.6)

project (sqloxx)

if (MSYS)
	include_directories(C:/MSYS/1.0/local/include)
	link_directories(C:/MSYS/1.0/local/lib)
else ()
	link_directories(/usr/local/lib)
endif ()

set (library_files
	 database_connection.cpp
	 database_transaction.cpp
	 sql_statement.cpp
	 detail/sqlite_dbconn.cpp
	 detail/sql_statement_impl.cpp
	 detail/sqlite3.c)

set (test_files
	${library_files}
     test.cpp
     tests/database_connection_tests.cpp
	 tests/derived_po.cpp
	 tests/persistent_object_tests.cpp
	 tests/sql_statement_tests.cpp
	 tests/sqloxx_tests_common.cpp
	 tests/atomicity_test.cpp
	 tests/database_transaction_tests.cpp
	 tests/handle_tests.cpp
	 tests/identity_map_tests.cpp
	 tests/next_auto_key_tests.cpp
	 tests/reader_tests.cpp)

add_executable (sqloxx_test ${test_files})
add_library (sqloxx ${library_files})
			
set (libraries
	 boost_filesystem
	 boost_system
	 jewel
	 unittest++)
<commit_msg>Further tweaks to CMakeLists.txt to ensure builds on both Fedora and MSYS.<commit_after>cmake_minimum_required (VERSION 2.6)

project (sqloxx)

if (MSYS)
	include_directories(C:/MSYS/1.0/local/include)
	link_directories(C:/MSYS/1.0/local/lib)
else ()
	link_directories(/usr/local/lib /usr/lib /usr/local/lib64 /usr/lib64)
endif ()

set (library_files
	 database_connection.cpp
	 database_transaction.cpp
	 sql_statement.cpp
	 detail/sqlite_dbconn.cpp
	 detail/sql_statement_impl.cpp
	 detail/sqlite3.c)

set (test_files
	${library_files}
     test.cpp
     tests/database_connection_tests.cpp
	 tests/derived_po.cpp
	 tests/persistent_object_tests.cpp
	 tests/sql_statement_tests.cpp
	 tests/sqloxx_tests_common.cpp
	 tests/atomicity_test.cpp
	 tests/database_transaction_tests.cpp
	 tests/handle_tests.cpp
	 tests/identity_map_tests.cpp
	 tests/next_auto_key_tests.cpp
	 tests/reader_tests.cpp)

add_executable (sqloxx_test ${test_files})
add_library (sqloxx ${library_files})
			
set (libraries
	 c
	 boost_filesystem
	 boost_system
	 dl
	 jewel
	 m
	 pthread
	 stdc++
	 unittest++)

{'fraction_non_alphanumeric': 0.09166666666666666, 'fraction_numerical': 0.008823529411764706, 'mean_word_length': 4.749295774647887, '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': '1248272', 'n_tokens_mistral': 778, 'n_tokens_neox': 705, 'n_words': 113}