<commit_before>cmake_minimum_required(VERSION 3.0 FATAL_ERROR)

project(cgogn_io_mesh_gen_examples
	LANGUAGES CXX
)

find_package(cgogn_core REQUIRED)
find_package(cgogn_io REQUIRED)


set(CGOGN_TEST_PREFIX "test_")
set(CGOGN_TEST_IMAGES_PATH "${CMAKE_SOURCE_DIR}/data/images/")
add_definitions("-DCGOGN_TEST_IMAGES_PATH=${CGOGN_TEST_IMAGES_PATH}")

set(HEADER_FILES
	program_options.h
	map3_from_image.h
)

set(SOURCE_FILES
	map3_from_image.cpp
	program_options.cpp
)



if (CGOGN_WITH_CGAL_EXAMPLES)
	find_package(Boost REQUIRED COMPONENTS thread)
	link_directories(${Boost_LIBRARY_DIRS})
	add_executable(map3_from_image ${HEADER_FILES} ${SOURCE_FILES})
	target_link_libraries(map3_from_image ${cgogn_core_LIBRARIES} cgogn_io_mesh_generation)
endif()

add_executable(map3_from_surface map3_from_surface.cpp)
target_link_libraries(map3_from_surface ${cgogn_core_LIBRARIES} ${cgogn_io_LIBRARIES} cgogn_io_mesh_generation)<commit_msg>fixed linux compilation.<commit_after>cmake_minimum_required(VERSION 3.0 FATAL_ERROR)

project(cgogn_io_mesh_gen_examples
	LANGUAGES CXX
)

find_package(cgogn_core REQUIRED)
find_package(cgogn_io REQUIRED)


set(CGOGN_TEST_PREFIX "test_")
set(CGOGN_TEST_IMAGES_PATH "${CMAKE_SOURCE_DIR}/data/images/")
add_definitions("-DCGOGN_TEST_IMAGES_PATH=${CGOGN_TEST_IMAGES_PATH}")

set(HEADER_FILES
	program_options.h
	map3_from_image.h
)

set(SOURCE_FILES
	map3_from_image.cpp
	program_options.cpp
)



if (CGOGN_WITH_CGAL_EXAMPLES)
	find_package(Boost REQUIRED COMPONENTS thread program_options)
	link_directories(${Boost_LIBRARY_DIRS})
	add_executable(map3_from_image ${HEADER_FILES} ${SOURCE_FILES})
	target_link_libraries(map3_from_image ${cgogn_core_LIBRARIES} cgogn_io_mesh_generation ${Boost_LIBRARIES})
endif()

add_executable(map3_from_surface map3_from_surface.cpp)
target_link_libraries(map3_from_surface ${cgogn_core_LIBRARIES} ${cgogn_io_LIBRARIES} cgogn_io_mesh_generation)
{'fraction_non_alphanumeric': 0.08368200836820083, 'fraction_numerical': 0.009414225941422594, 'mean_word_length': 11.753333333333334, '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': '7582212', 'n_tokens_mistral': 805, 'n_tokens_neox': 761, 'n_words': 85}