<commit_before>###############################################################################
#
# Description       : CMake build script for COPASI
# Original author(s): <NAME> <<EMAIL>>
#                     <NAME> <<EMAIL>>
#
# This file is part of COPASI.  Please visit http://COPASI.org for more
# information about COPASI, and the latest version of COPASI.
#
# Copyright (C) 2011 - 2010 by <NAME>, Virginia Tech Intellectual
# Properties, Inc., University of Heidelberg, and The University
# of Manchester.
# All rights reserved.
#
# Copyright (C) 2008 by <NAME>, Virginia Tech Intellectual
# Properties, Inc., EML Research, gGmbH, University of Heidelberg,
# and The University of Manchester.
# All rights reserved.
#
# Copyright (C) 2001 - 2007 by <NAME>, Virginia Tech Intellectual
# Properties, Inc. and EML Research, gGmbH.
# All rights reserved.
#
###############################################################################

cmake_minimum_required (VERSION 2.8.8)


project (COPASI)
cmake_policy(SET CMP0011 NEW)

include (common.cmake)

execute_process(
	COMMAND "${CMAKE_COMMAND}"
	ARGS -DSRC_DIRECTORY=\"${CMAKE_SOURCE_DIR}\"
		 -P "${CMAKE_SOURCE_DIR}/delete-qmake-files.cmake"

	WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
	)

set(COPASI_SOURCES)
set(COPASI_HEADERS)

if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/CopasiVersion.h)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CopasiVersion.h.in ${CMAKE_CURRENT_SOURCE_DIR}/CopasiVersion.h)
endif (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/CopasiVersion.h)

include(CopasiDataModel/CMakeLists.txt)
include(MIRIAM/CMakeLists.txt)
include(commandline/CMakeLists.txt)
include(compareExpressions/CMakeLists.txt)
include(crosssection/CMakeLists.txt)
include(elementaryFluxModes/CMakeLists.txt)
include(function/CMakeLists.txt)
include(layout/CMakeLists.txt)
include(lna/CMakeLists.txt)
include(lyap/CMakeLists.txt)
include(math/CMakeLists.txt)
include(model/CMakeLists.txt)
include(moieties/CMakeLists.txt)
include(odepack++/CMakeLists.txt)
include(optimization/CMakeLists.txt)
include(parameterFitting/CMakeLists.txt)
include(plot/CMakeLists.txt)

include(randomGenerator/CMakeLists.txt)
include(report/CMakeLists.txt)
include(sbml/CMakeLists.txt)
include(sbmlunit/CMakeLists.txt)
include(scan/CMakeLists.txt)
include(sensitivities/CMakeLists.txt)
include(steadystate/CMakeLists.txt)
include(trajectory/CMakeLists.txt)
include(tss/CMakeLists.txt)
include(tssanalysis/CMakeLists.txt)
include(utilities/CMakeLists.txt)
include(xml/CMakeLists.txt)

if(ENABLE_COPASI_SEDML)
include(sedml/CMakeLists.txt)
include_directories(${LIBSEDML_INCLUDE_DIR})
endif()


include_directories(
  "${CMAKE_CURRENT_SOURCE_DIR}"
  "${CMAKE_CURRENT_SOURCE_DIR}/.."
  ${RAPTOR_INCLUDE_DIR}
  ${LIBEXPAT_INCLUDE_DIR}
  ${LAPACK_INCLUDE_DIR}
  ${LIBSBML_INCLUDE_DIR}

)

#need to include iconv dir
if (NOT (WIN32 AND NOT CYGWIN) AND NOT APPLE)
  if (EXISTS ${ICONV_INCLUDE_DIR})
  include_directories(${ICONV_INCLUDE_DIR})
  endif()
endif()

add_library (libCOPASISE-core OBJECT ${COPASI_SOURCES} ${COPASI_HEADERS})

add_library (libCOPASISE-static STATIC $<TARGET_OBJECTS:libCOPASISE-core>)
set_target_properties (libCOPASISE-static PROPERTIES OUTPUT_NAME "COPASISE")

if(ENABLE_COPASI_SEDML)
  target_link_libraries(libCOPASISE-static ${LIBSEDML_LIBRARY})
endif()

target_link_libraries(libCOPASISE-static ${RAPTOR_LIBRARY} ${LIBSBML_LIBRARY} ${EXPAT_LIBRARIES} ${CLAPACK_LIBRARIES})

#need to link against iconv
if (NOT (WIN32 AND NOT CYGWIN) AND NOT APPLE)
  if (ICONV_LIBRARIES)
    target_link_libraries(libCOPASISE-static ${ICONV_LIBRARIES})
  endif()
endif()

if(ENABLE_LIBCOPASISE_SHARED)
  add_library (libCOPASISE-shared SHARED $<TARGET_OBJECTS:libCOPASISE-core>)
  set_target_properties (libCOPASISE-shared PROPERTIES OUTPUT_NAME "COPASISE")

  if(ENABLE_COPASI_SEDML)
    target_link_libraries(libCOPASISE-shared ${LIBSEDML_LIBRARY})
  endif()
<commit_msg>- fix compilation with xcode (that cannot deal with the object library)<commit_after>###############################################################################
#
# Description       : CMake build script for COPASI
# Original author(s): <NAME> <<EMAIL>>
#                     <NAME> <<EMAIL>>
#
# This file is part of COPASI.  Please visit http://COPASI.org for more
# information about COPASI, and the latest version of COPASI.
#
# Copyright (C) 2011 - 2010 by <NAME>, Virginia Tech Intellectual
# Properties, Inc., University of Heidelberg, and The University
# of Manchester.
# All rights reserved.
#
# Copyright (C) 2008 by <NAME>, Virginia Tech Intellectual
# Properties, Inc., EML Research, gGmbH, University of Heidelberg,
# and The University of Manchester.
# All rights reserved.
#
# Copyright (C) 2001 - 2007 by <NAME>, Virginia Tech Intellectual
# Properties, Inc. and EML Research, gGmbH.
# All rights reserved.
#
###############################################################################

cmake_minimum_required (VERSION 2.8.8)


project (COPASI)
cmake_policy(SET CMP0011 NEW)

include (common.cmake)

execute_process(
	COMMAND "${CMAKE_COMMAND}"
	ARGS -DSRC_DIRECTORY=\"${CMAKE_SOURCE_DIR}\"
		 -P "${CMAKE_SOURCE_DIR}/delete-qmake-files.cmake"

	WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
	)

set(COPASI_SOURCES)
set(COPASI_HEADERS)

if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/CopasiVersion.h)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CopasiVersion.h.in ${CMAKE_CURRENT_SOURCE_DIR}/CopasiVersion.h)
endif (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/CopasiVersion.h)

include(CopasiDataModel/CMakeLists.txt)
include(MIRIAM/CMakeLists.txt)
include(commandline/CMakeLists.txt)
include(compareExpressions/CMakeLists.txt)
include(crosssection/CMakeLists.txt)
include(elementaryFluxModes/CMakeLists.txt)
include(function/CMakeLists.txt)
include(layout/CMakeLists.txt)
include(lna/CMakeLists.txt)
include(lyap/CMakeLists.txt)
include(math/CMakeLists.txt)
include(model/CMakeLists.txt)
include(moieties/CMakeLists.txt)
include(odepack++/CMakeLists.txt)
include(optimization/CMakeLists.txt)
include(parameterFitting/CMakeLists.txt)
include(plot/CMakeLists.txt)

include(randomGenerator/CMakeLists.txt)
include(report/CMakeLists.txt)
include(sbml/CMakeLists.txt)
include(sbmlunit/CMakeLists.txt)
include(scan/CMakeLists.txt)
include(sensitivities/CMakeLists.txt)
include(steadystate/CMakeLists.txt)
include(trajectory/CMakeLists.txt)
include(tss/CMakeLists.txt)
include(tssanalysis/CMakeLists.txt)
include(utilities/CMakeLists.txt)
include(xml/CMakeLists.txt)

if(ENABLE_COPASI_SEDML)
include(sedml/CMakeLists.txt)
include_directories(${LIBSEDML_INCLUDE_DIR})
endif()


include_directories(
  "${CMAKE_CURRENT_SOURCE_DIR}"
  "${CMAKE_CURRENT_SOURCE_DIR}/.."
  ${RAPTOR_INCLUDE_DIR}
  ${LIBEXPAT_INCLUDE_DIR}
  ${LAPACK_INCLUDE_DIR}
  ${LIBSBML_INCLUDE_DIR}

)

#need to include iconv dir
if (NOT (WIN32 AND NOT CYGWIN) AND NOT APPLE)
  if (EXISTS ${ICONV_INCLUDE_DIR})
  include_directories(${ICONV_INCLUDE_DIR})
  endif()
endif()



if (APPLE AND CMAKE_GENERATOR STREQUAL "Xcode")
add_library (libCOPASISE-static STATIC ${COPASI_SOURCES} ${COPASI_HEADERS})
else()
add_library (libCOPASISE-core OBJECT ${COPASI_SOURCES} ${COPASI_HEADERS})
add_library (libCOPASISE-static STATIC $<TARGET_OBJECTS:libCOPASISE-core>)
endif()
set_target_properties (libCOPASISE-static PROPERTIES OUTPUT_NAME "COPASISE")

if(ENABLE_COPASI_SEDML)
  target_link_libraries(libCOPASISE-static ${LIBSEDML_LIBRARY})
endif()

target_link_libraries(libCOPASISE-static ${RAPTOR_LIBRARY} ${LIBSBML_LIBRARY} ${EXPAT_LIBRARIES} ${CLAPACK_LIBRARIES})

#need to link against iconv
if (NOT (WIN32 AND NOT CYGWIN) AND NOT APPLE)
  if (ICONV_LIBRARIES)
    target_link_libraries(libCOPASISE-static ${ICONV_LIBRARIES})
  endif()
endif()

if(ENABLE_LIBCOPASISE_SHARED)

  if (APPLE AND CMAKE_GENERATOR STREQUAL "Xcode")
    add_library (libCOPASISE-shared SHARED ${COPASI_SOURCES} ${COPASI_HEADERS})
  else()
    add_library (libCOPASISE-shared SHARED $<TARGET_OBJECTS:libCOPASISE-core>)
  endif()

  set_target_properties (libCOPASISE-shared PROPERTIES OUTPUT_NAME "COPASISE")

  if(ENABLE_COPASI_SEDML)
    target_link_libraries(libCOPASISE-shared ${LIBSEDML_LIBRARY})
  endif()

{'fraction_non_alphanumeric': 0.147170737694857, 'fraction_numerical': 0.007610163250276175, 'mean_word_length': 7.035502958579881, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5591530', 'n_tokens_mistral': 3184, 'n_tokens_neox': 2856, 'n_words': 528}