<commit_before>cmake_minimum_required(VERSION 2.8)

project(instruction_fuzz)

find_package(Boost REQUIRED)

# Find the paths to capstone's stuff.
find_path(CAPSTONE_INCLUDE_DIR NAMES capstone/capstone.h)
find_library(CAPSTONE_LIBRARIES NAMES capstone)

# Find the paths to darm's stuff.
find_path(DARM_INCLUDE_DIR NAMES darm.h PATHS /Users/anon/workspace/darm)
find_library(DARM_LIBRARIES NAMES darm PATHS /Users/anon/workspace/darm)

message("-- Include dirs of CAPSTONE  : " ${CAPSTONE_INCLUDE_DIR} )
message("-- Library dirs of CAPSTONE  : " ${CAPSTONE_LIBRARIES} )
message("-- Include dirs of DARM  : " ${DARM_INCLUDE_DIR} )
message("-- Library dirs of DARM  : " ${DARM_LIBRARIES} )
message("-- Include dirs of boost     : " ${Boost_INCLUDE_DIRS} )

include_directories(
	${Boost_INCLUDE_DIRS}
	${CAPSTONE_INCLUDE_DIR}
	${DARM_INCLUDE_DIR}
)

add_executable(
	instruction_fuzz
	${CMAKE_CURRENT_SOURCE_DIR}/instruction_fuzz.cpp
)

# Enable c++11 on the target.
set_target_properties(
	instruction_fuzz
	PROPERTIES 
	COMPILE_FLAGS "-std=c++11"
)

target_link_libraries(
	instruction_fuzz
	disassembly
	${CAPSTONE_LIBRARIES}
	${DARM_LIBRARIES}
)
<commit_msg>Make the includes private to the target.<commit_after>cmake_minimum_required(VERSION 2.8)

project(instruction_fuzz)

find_package(Boost REQUIRED)

# Find the paths to capstone's stuff.
find_path(CAPSTONE_INCLUDE_DIR NAMES capstone/capstone.h)
find_library(CAPSTONE_LIBRARIES NAMES capstone)

# Find the paths to darm's stuff.
find_path(DARM_INCLUDE_DIR NAMES darm.h PATHS /Users/anon/workspace/darm)
find_library(DARM_LIBRARIES NAMES darm PATHS /Users/anon/workspace/darm)

message("-- Include dirs of CAPSTONE  : " ${CAPSTONE_INCLUDE_DIR} )
message("-- Library dirs of CAPSTONE  : " ${CAPSTONE_LIBRARIES} )
message("-- Include dirs of DARM  : " ${DARM_INCLUDE_DIR} )
message("-- Library dirs of DARM  : " ${DARM_LIBRARIES} )
message("-- Include dirs of boost     : " ${Boost_INCLUDE_DIRS} )

add_executable(
	instruction_fuzz
	${CMAKE_CURRENT_SOURCE_DIR}/instruction_fuzz.cpp
)

target_include_directories(
	instruction_fuzz
	PRIVATE
	${Boost_INCLUDE_DIRS}
	${CAPSTONE_INCLUDE_DIR}
	${DARM_INCLUDE_DIR}
)

# Enable c++11 on the target.
set_target_properties(
	instruction_fuzz
	PROPERTIES 
	COMPILE_FLAGS "-std=c++11"
)

target_link_libraries(
	instruction_fuzz
	disassembly
	${CAPSTONE_LIBRARIES}
	${DARM_LIBRARIES}
)

{'fraction_non_alphanumeric': 0.10373792524149517, 'fraction_numerical': 0.00503989920201596, 'mean_word_length': 5.964912280701754, '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': '4186746', 'n_tokens_mistral': 990, 'n_tokens_neox': 896, 'n_words': 178}