<commit_before>cmake_minimum_required(VERSION 2.8.12)

project(SofaDeps)

# Temporary variable until we move the sub projects
set(SofaDeps_ACTUAL_SOURCE_DIR ${SofaDeps_SOURCE_DIR}/../extlibs)

# extlibs mandatory
add_subdirectory(${SofaDeps_ACTUAL_SOURCE_DIR}/miniBoost ${CMAKE_CURRENT_BINARY_DIR}/miniBoost)
add_subdirectory(${SofaDeps_ACTUAL_SOURCE_DIR}/tinyxml ${CMAKE_CURRENT_BINARY_DIR}/tinyxml)
set(EIGEN_ROOT ${SofaDeps_ACTUAL_SOURCE_DIR}/eigen-3.2.1 CACHE PATH "Directory for Eigen3 find_package")
add_subdirectory(${SofaDeps_ACTUAL_SOURCE_DIR}/eigen-3.2.1 ${CMAKE_CURRENT_BINARY_DIR}/eigen)
set(gtest_force_shared_crt ON CACHE BOOL "Use shared (DLL) run-time lib even when Google Test is built as static lib.")
add_subdirectory(${SofaDeps_ACTUAL_SOURCE_DIR}/gtest ${CMAKE_CURRENT_BINARY_DIR}/gtest)

if(MSVC)
    set_target_properties(tinyxml    PROPERTIES FOLDER "SofaExtlibs")
    set_target_properties(gtest      PROPERTIES FOLDER "SofaExtlibs")
    set_target_properties(gtest_main PROPERTIES FOLDER "SofaExtlibs")
endif()

# optional extlibs
add_subdirectory(${SofaDeps_ACTUAL_SOURCE_DIR}/miniFlowVR ${CMAKE_CURRENT_BINARY_DIR}/miniFlowVR)
add_subdirectory(${SofaDeps_ACTUAL_SOURCE_DIR}/newmat ${CMAKE_CURRENT_BINARY_DIR}/newmat)
add_subdirectory(${SofaDeps_ACTUAL_SOURCE_DIR}/CImg ${CMAKE_CURRENT_BINARY_DIR}/CImg)

if(MSVC)
    set_target_properties(miniFlowVR PROPERTIES FOLDER "SofaExtlibs")
    set_target_properties(newmat     PROPERTIES FOLDER "SofaExtlibs")
    set_target_properties(CImg       PROPERTIES FOLDER "SofaExtlibs")
endif()<commit_msg>BUILD FIX: SofaDeps CImg is not a target (header only lib)<commit_after>cmake_minimum_required(VERSION 2.8.12)

project(SofaDeps)

# Temporary variable until we move the sub projects
set(SofaDeps_ACTUAL_SOURCE_DIR ${SofaDeps_SOURCE_DIR}/../extlibs)

# extlibs mandatory
add_subdirectory(${SofaDeps_ACTUAL_SOURCE_DIR}/miniBoost ${CMAKE_CURRENT_BINARY_DIR}/miniBoost)
add_subdirectory(${SofaDeps_ACTUAL_SOURCE_DIR}/tinyxml ${CMAKE_CURRENT_BINARY_DIR}/tinyxml)
set(EIGEN_ROOT ${SofaDeps_ACTUAL_SOURCE_DIR}/eigen-3.2.1 CACHE PATH "Directory for Eigen3 find_package")
add_subdirectory(${SofaDeps_ACTUAL_SOURCE_DIR}/eigen-3.2.1 ${CMAKE_CURRENT_BINARY_DIR}/eigen)
set(gtest_force_shared_crt ON CACHE BOOL "Use shared (DLL) run-time lib even when Google Test is built as static lib.")
add_subdirectory(${SofaDeps_ACTUAL_SOURCE_DIR}/gtest ${CMAKE_CURRENT_BINARY_DIR}/gtest)

if(MSVC)
    set_target_properties(tinyxml    PROPERTIES FOLDER "SofaExtlibs")
    set_target_properties(gtest      PROPERTIES FOLDER "SofaExtlibs")
    set_target_properties(gtest_main PROPERTIES FOLDER "SofaExtlibs")
endif()

# optional extlibs
add_subdirectory(${SofaDeps_ACTUAL_SOURCE_DIR}/miniFlowVR ${CMAKE_CURRENT_BINARY_DIR}/miniFlowVR)
add_subdirectory(${SofaDeps_ACTUAL_SOURCE_DIR}/newmat ${CMAKE_CURRENT_BINARY_DIR}/newmat)
add_subdirectory(${SofaDeps_ACTUAL_SOURCE_DIR}/CImg ${CMAKE_CURRENT_BINARY_DIR}/CImg)

if(MSVC)
    set_target_properties(miniFlowVR PROPERTIES FOLDER "SofaExtlibs")
    set_target_properties(newmat     PROPERTIES FOLDER "SofaExtlibs")
    # set_target_properties(CImg       PROPERTIES FOLDER "SofaExtlibs")
endif()
{'fraction_non_alphanumeric': 0.09230769230769231, 'fraction_numerical': 0.006907378335949764, 'mean_word_length': 8.370588235294118, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '885087', 'n_tokens_mistral': 1257, 'n_tokens_neox': 1197, 'n_words': 179}