<commit_before>cmake_minimum_required(VERSION 3.19)

set(Libmapper_LIB ${BUILD_DIR}/Release/libmapper.lib)
set(LIBMAPPER_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../src)
mark_as_advanced(Libmapper_LIB)

# Add file sources
include_directories( 
  "${LIBLO_INCLUDES}"
  "${ZLIB_DIR}/include/zlib"
  "${LIBMAPPER_INCLUDES}"
)

link_directories( 
  "${LIBLO_INCLUDES}"
  "${ZLIB_DIR}/include/zlib"
  "${LIBMAPPER_INCLUDES}"
)

add_executable (test test.c)
add_executable (testbundle testbundle.c)
add_executable (testcalibrate testcalibrate.c)
add_executable (testconvergent testconvergent.c)
#add_executable (testcpp testcpp.cpp)
add_executable (testcustomtransport testcustomtransport.c ${PROJECT_SRC})
add_executable (testexpression testexpression.c)
add_executable (testgraph testgraph.c ${PROJECT_SRC})
add_executable (testinstance testinstance.c ${PROJECT_SRC})
#add_executable (testinterrupt testinterrupt.c)
add_executable (testlinear testlinear.c)
add_executable (testlocalmap testlocalmap.c)
add_executable (testmany testmany.c ${PROJECT_SRC})
add_executable (testmapfail testmapfail.c ${PROJECT_SRC})
add_executable (testmapinput testmapinput.c)
add_executable (testmapprotocol testmapprotocol.c)
add_executable (testnetwork testnetwork.c ${PROJECT_SRC})
add_executable (testparams testparams.c ${PROJECT_SRC})
add_executable (testparser testparser.c ${PROJECT_SRC})
add_executable (testprops testprops.c)
add_executable (testrate testrate.c ${PROJECT_SRC})
add_executable (testreverse testreverse.c)
add_executable (testselfmap testselfmap.c)
add_executable (testsetremote testsetremote.c)
add_executable (testsignalhierarchy testsignalhierarchy.c)
add_executable (testsignals testsignals.c)
add_executable (testspeed testspeed.c)
#add_executable (testthread testthread.c)
add_executable (testunmap testunmap.c ${PROJECT_SRC})
add_executable (testvector testvector.c ${PROJECT_SRC})

target_link_libraries(test PUBLIC ${Liblo_LIB} ${Zlib_LIB} ${Libmapper_LIB} wsock32.lib ws2_32.lib iphlpapi.lib)
target_link_libraries(testbundle PUBLIC ${Liblo_LIB} ${Zlib_LIB} ${Libmapper_LIB} wsock32.lib ws2_32.lib iphlpapi.lib)
target_link_libraries(testcalibrate PUBLIC ${Liblo_LIB} ${Zlib_LIB} ${Libmapper_LIB} wsock32.lib ws2_32.lib iphlpapi.lib)
target_link_libraries(testconvergent PUBLIC ${Liblo_LIB} ${Zlib_LIB} ${Libmapper_LIB} wsock32.lib ws2_32.lib iphlpapi.lib)
#target_link_libraries(testcpp PUBLIC ${Liblo_LIB} ${Zlib_LIB} ${Libmapper_LIB} wsock32.lib ws2_32.lib iphlpapi.lib)
target_link_libraries(testcustomtransport PUBLIC ${Liblo_LIB} ${Zlib_LIB} ${Libmapper_LIB} wsock32.lib ws2_32.lib iphlpapi.lib)
target_link_libraries(testexpression PUBLIC ${Liblo_LIB} ${Zlib_LIB} ${Libmapper_LIB} wsock32.lib ws2_32.lib iphlpapi.lib)<commit_msg>CMake fix for test dependencies.<commit_after>cmake_minimum_required(VERSION 3.19)

set(Libmapper_LIB ${BUILD_DIR}/Release/libmapper.lib)
set(LIBMAPPER_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../src)
mark_as_advanced(Libmapper_LIB)

# Add file sources
include_directories( 
  "${LIBLO_INCLUDES}"
  "${ZLIB_DIR}/include/zlib"
  "${LIBMAPPER_INCLUDES}"
)

link_directories( 
  "${LIBLO_INCLUDES}"
  "${ZLIB_DIR}/include/zlib"
  "${LIBMAPPER_INCLUDES}"
)

add_executable (test test.c)
add_executable (testbundle testbundle.c)
add_executable (testcalibrate testcalibrate.c)
add_executable (testconvergent testconvergent.c)
#add_executable (testcpp testcpp.cpp)
add_executable (testcustomtransport testcustomtransport.c ${PROJECT_SRC})
add_executable (testexpression testexpression.c)
add_executable (testgraph testgraph.c ${PROJECT_SRC})
add_executable (testinstance testinstance.c ${PROJECT_SRC})
#add_executable (testinterrupt testinterrupt.c)
add_executable (testlinear testlinear.c)
add_executable (testlocalmap testlocalmap.c)
add_executable (testmany testmany.c ${PROJECT_SRC})
add_executable (testmapfail testmapfail.c ${PROJECT_SRC})
add_executable (testmapinput testmapinput.c)
add_executable (testmapprotocol testmapprotocol.c)
add_executable (testnetwork testnetwork.c ${PROJECT_SRC})
add_executable (testparams testparams.c ${PROJECT_SRC})
add_executable (testparser testparser.c ${PROJECT_SRC})
add_executable (testprops testprops.c)
add_executable (testrate testrate.c ${PROJECT_SRC})
add_executable (testreverse testreverse.c)
add_executable (testselfmap testselfmap.c)
add_executable (testsetremote testsetremote.c)
add_executable (testsignalhierarchy testsignalhierarchy.c ${PROJECT_SRC})
add_executable (testsignals testsignals.c ${PROJECT_SRC})
add_executable (testspeed testspeed.c ${PROJECT_SRC})
#add_executable (testthread testthread.c)
add_executable (testunmap testunmap.c ${PROJECT_SRC})
add_executable (testvector testvector.c ${PROJECT_SRC})

target_link_libraries(test PUBLIC ${Liblo_LIB} ${Zlib_LIB} ${Libmapper_LIB} wsock32.lib ws2_32.lib iphlpapi.lib)
target_link_libraries(testbundle PUBLIC ${Liblo_LIB} ${Zlib_LIB} ${Libmapper_LIB} wsock32.lib ws2_32.lib iphlpapi.lib)
target_link_libraries(testcalibrate PUBLIC ${Liblo_LIB} ${Zlib_LIB} ${Libmapper_LIB} wsock32.lib ws2_32.lib iphlpapi.lib)
target_link_libraries(testconvergent PUBLIC ${Liblo_LIB} ${Zlib_LIB} ${Libmapper_LIB} wsock32.lib ws2_32.lib iphlpapi.lib)
#target_link_libraries(testcpp PUBLIC ${Liblo_LIB} ${Zlib_LIB} ${Libmapper_LIB} wsock32.lib ws2_32.lib iphlpapi.lib)
target_link_libraries(testcustomtransport PUBLIC ${Liblo_LIB} ${Zlib_LIB} ${Libmapper_LIB} wsock32.lib ws2_32.lib iphlpapi.lib)
target_link_libraries(testexpression PUBLIC ${Liblo_LIB} ${Zlib_LIB} ${Libmapper_LIB} wsock32.lib ws2_32.lib iphlpapi.lib)
{'fraction_non_alphanumeric': 0.10606060606060606, 'fraction_numerical': 0.013708513708513708, 'mean_word_length': 9.521821631878558, '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': '1735329', 'n_tokens_mistral': 2091, 'n_tokens_neox': 2021, 'n_words': 356}