<commit_before>cmake_minimum_required (VERSION 2.6)

project (coincident-ut)
set (CMAKE_MODULE_PATH  ${CMAKE_MODULE_PATH}
                        ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
find_package (LibUDIS86 REQUIRED)
find_package (LibCRPCUT REQUIRED)
find_package (GTest REQUIRED)
find_package (GMock REQUIRED)

# ====================================
# project name and version
# ====================================
project (ut)
set (TGT ut)

set (${TGT}_SRCS
    ../src/apis/pthreads/mutex.cc
	../src/apis/pthreads/pthreads.cc
    ../src/apis/semaphore.cc
	../src/apis/semaphore-helpers.cc
    ../src/disassembly.cc
    ../src/elf.cc
    ../src/thread.cc
    main.cc
    mock-thread.cc
    tests-controller.cc
    tests-disassembly.cc
    tests-elf.cc
    )
set (CMAKE_BUILD_TYPE debug)


include_directories(
	../src/include/
	${GMOCK_INCLUDE_DIRS}
	${GTEST_INCLUDE_DIRS}
	${LIBUDIS86_INCLUDE_DIRS}
	${LIBCRPCUT_INCLUDE_DIRS}
	)

link_directories (/home/ska/local/lib)

add_executable (${TGT} ${${TGT}_SRCS})

target_link_libraries(${TGT}
	${LIBCRPCUT_LIBRARIES}
	${LIBUDIS86_LIBRARIES}
	${GTEST_BOTH_LIBRARIES}
	${GMOCK_BOTH_LIBRARIES}
	dl
	elf
	pthread
	udis86)<commit_msg>unit test: build: Take udis86 from the found library paths<commit_after>cmake_minimum_required (VERSION 2.6)

project (coincident-ut)
set (CMAKE_MODULE_PATH  ${CMAKE_MODULE_PATH}
                        ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
find_package (LibUDIS86 REQUIRED)
find_package (LibCRPCUT REQUIRED)
find_package (GTest REQUIRED)
find_package (GMock REQUIRED)

# ====================================
# project name and version
# ====================================
project (ut)
set (TGT ut)

set (${TGT}_SRCS
    ../src/apis/pthreads/mutex.cc
	../src/apis/pthreads/pthreads.cc
    ../src/apis/semaphore.cc
	../src/apis/semaphore-helpers.cc
    ../src/disassembly.cc
    ../src/elf.cc
    ../src/thread.cc
    main.cc
    mock-thread.cc
    tests-controller.cc
    tests-disassembly.cc
    tests-elf.cc
    )
set (CMAKE_BUILD_TYPE debug)


include_directories(
	../src/include/
	${GMOCK_INCLUDE_DIRS}
	${GTEST_INCLUDE_DIRS}
	${LIBUDIS86_INCLUDE_DIRS}
	${LIBCRPCUT_INCLUDE_DIRS}
	)

link_directories (/home/ska/local/lib)

add_executable (${TGT} ${${TGT}_SRCS})

target_link_libraries(${TGT}
	${LIBCRPCUT_LIBRARIES}
	${LIBUDIS86_LIBRARIES}
	${GTEST_BOTH_LIBRARIES}
	${GMOCK_BOTH_LIBRARIES}
	dl
	elf
	pthread)
{'fraction_non_alphanumeric': 0.1837160751565762, 'fraction_numerical': 0.008350730688935281, 'mean_word_length': 4.076271186440678, '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': '1506437', 'n_tokens_mistral': 993, 'n_tokens_neox': 923, 'n_words': 141}