<commit_before>cmake_minimum_required (VERSION 2.6)
project (XtalComp)

add_library (XtalComp xtalcomp.cpp xctransform.cpp xcvector.h xcmatrix.h
  stablecomparison.h)

target_link_libraries(XtalComp spglib)

add_subdirectory(spglib)

option( BUILD_CGI
       "Whether to compile the CGI handler as well as the XtalComp code."
       OFF )
if(BUILD_CGI)
  add_executable (xtalcomp.cgi cgi/xtalcomp-cgi.cpp)
  target_link_libraries (xtalcomp.cgi XtalComp)
endif(BUILD_CGI)

add_executable (test test.cpp)
target_link_libraries (test XtalComp)<commit_msg>Install and shared object target<commit_after>cmake_minimum_required (VERSION 2.6)
project (XtalComp)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)
add_library (XtalComp STATIC xtalcomp.cpp xctransform.cpp xcvector.h xcmatrix.h
  stablecomparison.h)

add_library (XtalCompShared SHARED xtalcomp.cpp xctransform.cpp xcvector.h xcmatrix.h
stablecomparison.h)
set_target_properties(XtalCompShared PROPERTIES OUTPUT_NAME XtalComp)

target_link_libraries(XtalComp spglib)
target_link_libraries(XtalCompShared spglib)

add_subdirectory(spglib)

option( BUILD_CGI
       "Whether to compile the CGI handler as well as the XtalComp code."
       OFF )
if(BUILD_CGI)
  add_executable (xtalcomp.cgi cgi/xtalcomp-cgi.cpp)
  target_link_libraries (xtalcomp.cgi XtalComp)
endif(BUILD_CGI)

add_executable (test test.cpp)
target_link_libraries (test XtalComp)

install(TARGETS XtalComp XtalCompShared LIBRARY DESTINATION "lib" ARCHIVE DESTINATION "lib")
install(FILES "xcmatrix.h" "xctransform.h" "xcvector.h" "xtalcomp.h" DESTINATION "include/xtalcomp")
{'fraction_non_alphanumeric': 0.07561436672967864, 'fraction_numerical': 0.002520478890989288, 'mean_word_length': 6.420560747663552, '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': '2678442', 'n_tokens_mistral': 608, 'n_tokens_neox': 588, 'n_words': 124}