# Autogenerated file, run tools/build/setup_cmake.py to regenerate

FILE(GLOB gensources
     "${CMAKE_BINARY_DIR}/src/core/*.cpp")

FILE(GLOB genheaders
     "${CMAKE_BINARY_DIR}/include/IMP/core/*.h")

include_directories(${ANN_INCLUDE_PATH}
        ${BOOST.FILESYSTEM_INCLUDE_PATH}
        ${BOOST.PROGRAMOPTIONS_INCLUDE_PATH}
        ${BOOST.RANDOM_INCLUDE_PATH}
        ${BOOST.SYSTEM_INCLUDE_PATH}
        ${CGAL_INCLUDE_PATH}
        ${GPERFTOOLS_INCLUDE_PATH}
        ${TCMALLOC_HEAPCHECKER_INCLUDE_PATH}
        ${TCMALLOC_HEAPPROFILER_INCLUDE_PATH})
link_directories(${ANN_LINK_PATH}
        ${BOOST.FILESYSTEM_LINK_PATH}
        ${BOOST.PROGRAMOPTIONS_LINK_PATH}
        ${BOOST.RANDOM_LINK_PATH}
        ${BOOST.SYSTEM_LINK_PATH}
        ${CGAL_LINK_PATH}
        ${GPERFTOOLS_LINK_PATH}
        ${TCMALLOC_HEAPCHECKER_LINK_PATH}
        ${TCMALLOC_HEAPPROFILER_LINK_PATH})
add_definitions("-DIMPCORE_EXPORTS")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CORE_CXX_FLAGS}")

set(headers ${CMAKE_SOURCE_DIR}/modules/core/include/AngleRestraint.h
${CMAKE_SOURCE_DIR}/modules/core/include/AngleTripletScore.h
${CMAKE_SOURCE_DIR}/modules/core/include/AttributeSingletonScore.h
${CMAKE_SOURCE_DIR}/modules/core/include/BallMover.h
${CMAKE_SOURCE_DIR}/modules/core/include/BoundingBox3DSingletonScore.h
${CMAKE_SOURCE_DIR}/modules/core/include/BoxSweepClosePairsFinder.h
${CMAKE_SOURCE_DIR}/modules/core/include/CentroidOfRefined.h
${CMAKE_SOURCE_DIR}/modules/core/include/ChecksScoreState.h
${CMAKE_SOURCE_DIR}/modules/core/include/ChildrenRefiner.h
${CMAKE_SOURCE_DIR}/modules/core/include/ClosePairsFinder.h
${CMAKE_SOURCE_DIR}/modules/core/include/ClosePairsPairScore.h
${CMAKE_SOURCE_DIR}/modules/core/include/ClosedCubicSpline.h
${CMAKE_SOURCE_DIR}/modules/core/include/ConjugateGradients.h
${CMAKE_SOURCE_DIR}/modules/core/include/ConnectivityRestraint.h
${CMAKE_SOURCE_DIR}/modules/core/include/ConstantRestraint.h
${CMAKE_SOURCE_DIR}/modules/core/include/Cosine.h
${CMAKE_SOURCE_DIR}/modules/core/include/CoverRefined.h
${CMAKE_SOURCE_DIR}/modules/core/include/DataObject.h
${CMAKE_SOURCE_DIR}/modules/core/include/DerivativesFromRefined.h
${CMAKE_SOURCE_DIR}/modules/core/include/DerivativesToRefined.h
${CMAKE_SOURCE_DIR}/modules/core/include/DiameterRestraint.h
${CMAKE_SOURCE_DIR}/modules/core/include/DihedralRestraint.h
${CMAKE_SOURCE_DIR}/modules/core/include/DistancePairScore.h
${CMAKE_SOURCE_DIR}/modules/core/include/DistanceRestraint.h
${CMAKE_SOURCE_DIR}/modules/core/include/DistanceToSingletonScore.h
${CMAKE_SOURCE_DIR}/modules/core/include/ExcludedVolumeRestraint.h
${CMAKE_SOURCE_DIR}/modules/core/include/FixedRefiner.h
${CMAKE_SOURCE_DIR}/modules/core/include/GridClosePairsFinder.h
${CMAKE_SOURCE_DIR}/modules/core/include/Harmonic.h
${CMAKE_SOURCE_DIR}/modules/core/include/HarmonicLowerBound.h
${CMAKE_SOURCE_DIR}/modules/core/include/HarmonicUpperBound.h
${CMAKE_SOURCE_DIR}/modules/core/include/HarmonicWell.h
${CMAKE_SOURCE_DIR}/modules/core/include/Hierarchy.h
${CMAKE_SOURCE_DIR}/modules/core/include/IncrementalScoringFunction.h
${CMAKE_SOURCE_DIR}/modules/core/include/LeavesRefiner.h
${CMAKE_SOURCE_DIR}/modules/core/include/Linear.h
${CMAKE_SOURCE_DIR}/modules/core/include/MCCGSampler.h
${CMAKE_SOURCE_DIR}/modules/core/include/MSConnectivityRestraint.h
${CMAKE_SOURCE_DIR}/modules/core/include/MinimumRestraint.h
${CMAKE_SOURCE_DIR}/modules/core/include/MonteCarlo.h
${CMAKE_SOURCE_DIR}/modules/core/include/MonteCarloMover.h
${CMAKE_SOURCE_DIR}/modules/core/include/MoveStatisticsScoreState.h
${CMAKE_SOURCE_DIR}/modules/core/include/Mover.h
${CMAKE_SOURCE_DIR}/modules/core/include/MoverBase.h
${CMAKE_SOURCE_DIR}/modules/core/include/NearestNeighborsClosePairsFinder.h
${CMAKE_SOURCE_DIR}/modules/core/include/NeighborsTable.h
${CMAKE_SOURCE_DIR}/modules/core/include/NormalMover.h
${CMAKE_SOURCE_DIR}/modules/core/include/OpenCubicSpline.h
${CMAKE_SOURCE_DIR}/modules/core/include/PeriodicOptimizerState.h
${CMAKE_SOURCE_DIR}/modules/core/include/QuadraticClosePairsFinder.h
${CMAKE_SOURCE_DIR}/modules/core/include/RefinedPairsPairScore.h
${CMAKE_SOURCE_DIR}/modules/core/include/RestraintsScoringFunction.h
${CMAKE_SOURCE_DIR}/modules/core/include/RigidBodyDistancePairScore.h
${CMAKE_SOURCE_DIR}/modules/core/include/RigidBodyMover.h
${CMAKE_SOURCE_DIR}/modules/core/include/RigidClosePairsFinder.h
${CMAKE_SOURCE_DIR}/modules/core/include/SerialMover.h
${CMAKE_SOURCE_DIR}/modules/core/include/SphereDistancePairScore.h
${CMAKE_SOURCE_DIR}/modules/core/include/StatisticalPairScore.h
${CMAKE_SOURCE_DIR}/modules/core/include/SteepestDescent.h
${CMAKE_SOURCE_DIR}/modules/core/include/TableRefiner.h
${CMAKE_SOURCE_DIR}/modules/core/include/Transform.h
${CMAKE_SOURCE_DIR}/modules/core/include/TransformedDistancePairScore.h
${CMAKE_SOURCE_DIR}/modules/core/include/TruncatedHarmonic.h
${CMAKE_SOURCE_DIR}/modules/core/include/Typed.h
${CMAKE_SOURCE_DIR}/modules/core/include/TypedPairScore.h
${CMAKE_SOURCE_DIR}/modules/core/include/VolumeRestraint.h
${CMAKE_SOURCE_DIR}/modules/core/include/XYZ.h
${CMAKE_SOURCE_DIR}/modules/core/include/XYZR.h
${CMAKE_SOURCE_DIR}/modules/core/include/blame.h
${CMAKE_SOURCE_DIR}/modules/core/include/close_pairs_finder_macros.h
${CMAKE_SOURCE_DIR}/modules/core/include/core_macros.h
${CMAKE_SOURCE_DIR}/modules/core/include/generic.h
${CMAKE_SOURCE_DIR}/modules/core/include/model_statistics.h
${CMAKE_SOURCE_DIR}/modules/core/include/monte_carlo_macros.h
${CMAKE_SOURCE_DIR}/modules/core/include/mover_macros.h
${CMAKE_SOURCE_DIR}/modules/core/include/periodic_optimizer_state_macros.h
${CMAKE_SOURCE_DIR}/modules/core/include/predicates.h
${CMAKE_SOURCE_DIR}/modules/core/include/python_only.h
${CMAKE_SOURCE_DIR}/modules/core/include/rigid_bodies.h
${CMAKE_SOURCE_DIR}/modules/core/include/rigid_body_geometries.h
${CMAKE_SOURCE_DIR}/modules/core/include/symmetry.h
${CMAKE_SOURCE_DIR}/modules/core/include/utility.h
${CMAKE_SOURCE_DIR}/modules/core/include/internal/CoreCloseBipartitePairContainer.h
${CMAKE_SOURCE_DIR}/modules/core/include/internal/CoreClosePairContainer.h
${CMAKE_SOURCE_DIR}/modules/core/include/internal/MovedSingletonContainer.h
${CMAKE_SOURCE_DIR}/modules/core/include/internal/angle_helpers.h
${CMAKE_SOURCE_DIR}/modules/core/include/internal/close_pairs_helpers.h
${CMAKE_SOURCE_DIR}/modules/core/include/internal/container_helpers.h
${CMAKE_SOURCE_DIR}/modules/core/include/internal/dihedral_helpers.h
${CMAKE_SOURCE_DIR}/modules/core/include/internal/evaluate_distance_pair_score.h
${CMAKE_SOURCE_DIR}/modules/core/include/internal/graph_base.h
${CMAKE_SOURCE_DIR}/modules/core/include/internal/grid_close_pairs_impl.h
${CMAKE_SOURCE_DIR}/modules/core/include/internal/hierarchy_helpers.h
${CMAKE_SOURCE_DIR}/modules/core/include/internal/incremental_scoring_function.h
${CMAKE_SOURCE_DIR}/modules/core/include/internal/remove_pointers.h
${CMAKE_SOURCE_DIR}/modules/core/include/internal/rigid_bodies.h
${CMAKE_SOURCE_DIR}/modules/core/include/internal/rigid_body_tree.h
${CMAKE_SOURCE_DIR}/modules/core/include/internal/sinks.h
${CMAKE_SOURCE_DIR}/modules/core/include/internal/truncated_harmonic.h)

if(DEFINED IMP_CORE_LIBRARY_EXTRA_SOURCES)
  set_source_files_properties(${IMP_CORE_LIBRARY_EXTRA_SOURCES}
                              PROPERTIES GENERATED 1)
endif()
set_source_files_properties(${CMAKE_BINARY_DIR}/src/core_config.cpp
  PROPERTIES GENERATED 1)

if(DEFINED IMP_core_IS_PER_CPP)
  set(sources ${CMAKE_SOURCE_DIR}/modules/core/src/AngleRestraint.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/AngleTripletScore.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/AttributeSingletonScore.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/BallMover.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/BoundingBox3DSingletonScore.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/BoxSweepClosePairsFinder.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/CentroidOfRefined.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/ChecksScoreState.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/ChildrenRefiner.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/ClosePairsFinder.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/ClosePairsPairScore.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/ClosedCubicSpline.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/ConjugateGradients.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/ConnectivityRestraint.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/ConstantRestraint.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/Cosine.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/CoverRefined.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/DerivativesFromRefined.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/DerivativesToRefined.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/DiameterRestraint.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/DihedralRestraint.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/DistanceRestraint.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/DistanceToSingletonScore.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/ExcludedVolumeRestraint.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/FixedRefiner.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/GridClosePairsFinder.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/Hierarchy.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/IncrementalScoringFunction.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/LeavesRefiner.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/MCCGSampler.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/MSConnectivityRestraint.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/MinimumRestraint.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/MonteCarlo.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/MonteCarloMover.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/MoveStatisticsScoreState.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/NearestNeighborsClosePairsFinder.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/NeighborsTable.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/NormalMover.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/QuadraticClosePairsFinder.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/RefinedPairsPairScore.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/RigidBodyDistancePairScore.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/RigidBodyMover.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/RigidClosePairsFinder.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/SerialMover.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/SphereDistancePairScore.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/SteepestDescent.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/TableRefiner.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/Transform.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/TransformedDistancePairScore.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/Typed.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/TypedPairScore.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/VolumeRestraint.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/XYZ.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/XYZR.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/blame.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/model_statistics.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/rigid_bodies.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/rigid_body_geometries.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/symmetry.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/utility.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/internal/CoreCloseBipartitePairContainer.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/internal/CoreClosePairContainer.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/internal/MovedSingletonContainer.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/internal/close_pairs_helpers.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/internal/graph_base.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/internal/incremental_scoring_function.cpp
${CMAKE_SOURCE_DIR}/modules/core/src/internal/rigid_body_tree.cpp)
  add_library(IMP.core-lib  ${IMP_LIB_TYPE} ${gensources} ${genheaders}
              ${headers} ${sources}
              ${CMAKE_BINARY_DIR}/src/core_config.cpp
              ${IMP_CORE_LIBRARY_EXTRA_SOURCES}
              )
else()
  add_library(IMP.core-lib  ${IMP_LIB_TYPE} ${gensources} ${genheaders}
              ${headers} ${CMAKE_BINARY_DIR}/src/core_all.cpp
              ${CMAKE_BINARY_DIR}/src/core_config.cpp
              ${IMP_CORE_LIBRARY_EXTRA_SOURCES}
              )
endif()
set_target_properties(IMP.core-lib PROPERTIES
                      OUTPUT_NAME imp_core)
set_property(TARGET "IMP.core-lib" PROPERTY FOLDER "IMP.core")

INSTALL(TARGETS IMP.core-lib DESTINATION ${CMAKE_INSTALL_LIBDIR})

add_dependencies(IMP.core-lib IMP.core-version)

if(DEFINED IMP_CORE_LIBRARY_EXTRA_DEPENDENCIES)
  add_dependencies(IMP.core-lib ${IMP_CORE_LIBRARY_EXTRA_DEPENDENCIES})
endif()

target_link_libraries(IMP.core-lib ${imp_core_libs})

set(IMP_core_LIBRARY IMP.core-lib CACHE INTERNAL "" FORCE)
