<commit_before>set(PROGRAM_NAME "eugenics")

# file with main in it
set(MAIN_SRC
  src/main.cc)

# rest of .cc's
include(${CMAKE_CURRENT_SOURCE_DIR}/src/build_list.cmake)

# if we use gtest unittesting
set(UNITTEST_SRCS
 src/test_main.cc)


# # gflags
# if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
#   find_package(gflags REQUIRED)
#   include_directories(${gflags_INCLUDE_DIR})
# else()
#   find_package(GFlags REQUIRED)
#   if(GFlags_FOUND)
#     include_directories(${GFlags_INCLUDE_DIRS})
#   endif()
# endif()

#if we need boost, and what libraries
#find_package(Boost 1.57.0 COMPONENTS filesystem system REQUIRED)
#if(Boost_FOUND)
#  include_directories(${Boost_INCLUDE_DIRS})
#endif()

#if(APPLE)
## if OS X, find these packages
## none
#else()
#  # if not OS X, find these packages
#  find_package(Curses)
#  if(CURSES_FOUND)
#    # if you find it, include its' headers
#    include_directories(${CURSES_INCLUDE_DIR})
#  endif()
#endif()

## tell find_package where it can find readline
#set(Readline_DIR ${INCLUDES_DIR})
#find_package(Readline)
#if(READLINE_FOUND)
#  # if you find it, define READLINE
#  add_definitions(-DREADLINE)
#    # if you find it, include its' headers
#  include_directories(${Readline_INCLUDE_DIR})
#endif()

# includes
include_directories(${CMAKE_CURRENT_SOURCE_DIR})

#binary names
set(RELEASE_BINARY "${PROGRAM_NAME}")
set(UNITTEST_BINARY "${PROGRAM_NAME}-test")

add_executable(${RELEASE_BINARY} ${MAIN_SRC} ${SRCS})

#use C++11
set_property(TARGET ${RELEASE_BINARY} PROPERTY CXX_STANDARD 11)
#C++11 required
set_property(TARGET ${RELEASE_BINARY} PROPERTY CXX_STANDARD_REQUIRED ON)

# #use C++14
# set_property(TARGET ${RELEASE_BINARY} PROPERTY CXX_STANDARD 14)
# #C++14 required
# #set_property(TARGET ${RELEASE_BINARY} PROPERTY CXX_STANDARD_REQUIRED ON)

# link libraries
# if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
#   target_link_libraries(${RELEASE_BINARY} ${gflags_LIBRARIES})
# else()
#   target_link_libraries(${RELEASE_BINARY} ${GFlags_LIBS})
# endif()

# # if curses was found, link binary with boost, readline and curses
# if(CURSES_FOUND)
#   target_link_libraries(${RELEASE_BINARY} ${Boost_LIBRARIES}  ${Readline_LIBRARY} ${CURSES_LIBRARIES})
# # if curses was not found, but readline was, link binary with boost and readline
# elseif(READLINE_FOUND)
#   target_link_libraries(${RELEASE_BINARY} ${Boost_LIBRARIES}  ${Readline_LIBRARY})
# else()
#   # finally, if only boost is found, link only boost
#   target_link_libraries(${RELEASE_BINARY} ${Boost_LIBRARIES})
# endif()

# # Unit Testing with gtest
if (test)
  enable_testing()

  # Unit Tests
	add_executable(${UNITTEST_BINARY} ${UNITTEST_SRCS} ${SRCS})

  # Standard linking to gtest stuff.
  # also link boost
	# target_link_libraries(${UNITTEST_BINARY} ${Boost_LIBRARIES} gtest gtest_main)
	target_link_libraries(${UNITTEST_BINARY} gtest gtest_main)

  # This is so you can do 'make test' to see all your tests run, instead of
  # manually running the executable runUnitTests to see those specific tests.
  add_test(NAME that-test-I-made COMMAND ${UNITTEST_BINARY})

  # You can also omit NAME and COMMAND. The second argument could be some other
  # test executable.
  add_test(that-other-test-I-made ${UNITTEST_BINARY})
endif()<commit_msg>Added proper CMake for split test files<commit_after>set(PROGRAM_NAME "eugenics")

# file with main in it
set(MAIN_SRC
  src/main.cc)

# rest of .cc's
include(${CMAKE_CURRENT_SOURCE_DIR}/src/build_list.cmake)

# if we use gtest unittesting
set(UNITTEST_SRCS
 src/test_main.cc)


# # gflags
# if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
#   find_package(gflags REQUIRED)
#   include_directories(${gflags_INCLUDE_DIR})
# else()
#   find_package(GFlags REQUIRED)
#   if(GFlags_FOUND)
#     include_directories(${GFlags_INCLUDE_DIRS})
#   endif()
# endif()

#if we need boost, and what libraries
#find_package(Boost 1.57.0 COMPONENTS filesystem system REQUIRED)
#if(Boost_FOUND)
#  include_directories(${Boost_INCLUDE_DIRS})
#endif()

#if(APPLE)
## if OS X, find these packages
## none
#else()
#  # if not OS X, find these packages
#  find_package(Curses)
#  if(CURSES_FOUND)
#    # if you find it, include its' headers
#    include_directories(${CURSES_INCLUDE_DIR})
#  endif()
#endif()

## tell find_package where it can find readline
#set(Readline_DIR ${INCLUDES_DIR})
#find_package(Readline)
#if(READLINE_FOUND)
#  # if you find it, define READLINE
#  add_definitions(-DREADLINE)
#    # if you find it, include its' headers
#  include_directories(${Readline_INCLUDE_DIR})
#endif()

# includes
include_directories(${CMAKE_CURRENT_SOURCE_DIR})

#binary names
set(RELEASE_BINARY "${PROGRAM_NAME}")
set(UNITTEST_BINARY "${PROGRAM_NAME}-test")

add_executable(${RELEASE_BINARY} ${MAIN_SRC} ${SRCS})

#use C++11
set_property(TARGET ${RELEASE_BINARY} PROPERTY CXX_STANDARD 11)
#C++11 required
set_property(TARGET ${RELEASE_BINARY} PROPERTY CXX_STANDARD_REQUIRED ON)

# #use C++14
# set_property(TARGET ${RELEASE_BINARY} PROPERTY CXX_STANDARD 14)
# #C++14 required
# #set_property(TARGET ${RELEASE_BINARY} PROPERTY CXX_STANDARD_REQUIRED ON)

# link libraries
# if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
#   target_link_libraries(${RELEASE_BINARY} ${gflags_LIBRARIES})
# else()
#   target_link_libraries(${RELEASE_BINARY} ${GFlags_LIBS})
# endif()

# # if curses was found, link binary with boost, readline and curses
# if(CURSES_FOUND)
#   target_link_libraries(${RELEASE_BINARY} ${Boost_LIBRARIES}  ${Readline_LIBRARY} ${CURSES_LIBRARIES})
# # if curses was not found, but readline was, link binary with boost and readline
# elseif(READLINE_FOUND)
#   target_link_libraries(${RELEASE_BINARY} ${Boost_LIBRARIES}  ${Readline_LIBRARY})
# else()
#   # finally, if only boost is found, link only boost
#   target_link_libraries(${RELEASE_BINARY} ${Boost_LIBRARIES})
# endif()

# # Unit Testing with gtest
if (test)
  enable_testing()

  # Unit Tests
	add_executable("test-circuit" src/test_circuit.cc ${SRCS})
    add_executable("test-algorithm" src/test_algorithm.cc ${SRCS})
#	add_executable(${UNITTEST_BINARY} test_blahhh.cc ${SRCS})


  # Standard linking to gtest stuff.
  # also link boost
	# target_link_libraries(${UNITTEST_BINARY} ${Boost_LIBRARIES} gtest gtest_main)
	target_link_libraries("test-circuit" gtest gtest_main)
	target_link_libraries("test-algorithm" gtest gtest_main)

  # This is so you can do 'make test' to see all your tests run, instead of
  # manually running the executable runUnitTests to see those specific tests.
  # add_test(NAME that-test-I-made COMMAND ${UNITTEST_BINARY})

  # You can also omit NAME and COMMAND. The second argument could be some other
  # test executable.
  # add_test(that-other-test-I-made ${UNITTEST_BINARY})
endif()
{'fraction_non_alphanumeric': 0.11834848710687136, 'fraction_numerical': 0.004769712326725294, 'mean_word_length': 6.078059071729958, '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': '4110269', 'n_tokens_mistral': 2568, 'n_tokens_neox': 2411, 'n_words': 570}