<commit_before>cmake_minimum_required(VERSION 3.0)
project(Max)
### TODO REVIEW ME
if(NOT BUILD_JAMOMAMAX)
	return()
endif()

if(IOS OR (NOT APPLE AND NOT WIN32))
	message("Max extension requires OS X or Windows.")
	return()
endif()

if(WIN64)
	message("Does not work yet on Win64")
	return()
endif()

if(WIN32 AND CMAKE_BUILD_TYPE STREQUAL "Release")
	add_definitions(-DMAXAPI_USE_MSCRT)
endif()

set(PROJECT_SRCS
	$<TARGET_OBJECTS:TTClock>
${CMAKE_CURRENT_SOURCE_DIR}/source/Max.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../../../Implementations/Max/source/c74support/max-includes/common/commonsyms.cpp
)

include_directories("${PROJECT_SOURCE_DIR}/")
include_directories("${PROJECT_SOURCE_DIR}/includes")

addMaxsupport()

if(APPLE)
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include../../../../Implementations/Max/source/c74support/max-includes/macho-prefix.pch")
endif()

file(GLOB_RECURSE PROJECT_HDRS ${CMAKE_CURRENT_SOURCE_DIR}/includes/*.h)
add_jamoma_extension()

# TODO generalize this in a max module file.
if(WIN32)
	target_link_libraries(${PROJECT_NAME} PRIVATE "${PROJECT_SOURCE_DIR}/../../../../Implementations/Max/source/c74support/max-includes/MaxAPI.lib")
endif()<commit_msg>do not rely on relative path<commit_after>cmake_minimum_required(VERSION 3.0)
project(Max)
### TODO REVIEW ME
if(NOT BUILD_JAMOMAMAX)
	return()
endif()

if(IOS OR (NOT APPLE AND NOT WIN32))
	message("Max extension requires OS X or Windows.")
	return()
endif()

if(WIN64)
	message("Does not work yet on Win64")
	return()
endif()

if(WIN32 AND CMAKE_BUILD_TYPE STREQUAL "Release")
	add_definitions(-DMAXAPI_USE_MSCRT)
endif()

set(PROJECT_SRCS
	$<TARGET_OBJECTS:TTClock>
${CMAKE_CURRENT_SOURCE_DIR}/source/Max.cpp
${JAMOMAMAX_PATH}/source/c74support/max-includes/common/commonsyms.cpp
)

include_directories("${PROJECT_SOURCE_DIR}/")
include_directories("${PROJECT_SOURCE_DIR}/includes")

addMaxsupport()

if(APPLE)
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include../../../../Implementations/Max/source/c74support/max-includes/macho-prefix.pch")
endif()

file(GLOB_RECURSE PROJECT_HDRS ${CMAKE_CURRENT_SOURCE_DIR}/includes/*.h)
add_jamoma_extension()

# TODO generalize this in a max module file.
if(WIN32)
	target_link_libraries(${PROJECT_NAME} PRIVATE "${PROJECT_SOURCE_DIR}/../../../../Implementations/Max/source/c74support/max-includes/MaxAPI.lib")
endif()
{'fraction_non_alphanumeric': 0.14925373134328357, 'fraction_numerical': 0.01535181236673774, 'mean_word_length': 6.285714285714286, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '232786', 'n_tokens_mistral': 895, 'n_tokens_neox': 848, 'n_words': 146}