# GAMBIT: Global and Modular BSM Inference Tool
#************************************************
# \file
#
#  Cmake CMakeLists.txt file for ScannerBit.
#
#  This file has been automatically generated by
#  scanner+_harvester.py.  Please do not modify.
#
#************************************************
#
#  Authors:
#
#  \author The GAMBIT Collaboration
#  \date 01:34PM on April 15, 2024
#
#************************************************

set( scannerbit_sources
                src/plugin_comparators.cpp
                src/plugin_details.cpp
                src/plugin_loader.cpp
                src/scan.cpp
                src/scanner_utils.cpp
                src/priors/cauchy.cpp
                src/priors/composite.cpp
                src/priors/doublelogflatjoin.cpp
                src/priors/gaussian.cpp
                src/priors/lognormal.cpp
)

set( scannerbit_headers
                include/gambit/ScannerBit/base_prior.hpp
                include/gambit/ScannerBit/cholesky.hpp
                include/gambit/ScannerBit/factory_defs.hpp
                include/gambit/ScannerBit/interp_plugin.hpp
                include/gambit/ScannerBit/objective_plugin.hpp
                include/gambit/ScannerBit/plugin_comparators.hpp
                include/gambit/ScannerBit/plugin_defs.hpp
                include/gambit/ScannerBit/plugin_details.hpp
                include/gambit/ScannerBit/plugin_factory.hpp
                include/gambit/ScannerBit/plugin_interface.hpp
                include/gambit/ScannerBit/plugin_loader.hpp
                include/gambit/ScannerBit/plugin_macros.hpp
                include/gambit/ScannerBit/printable_types.hpp
                include/gambit/ScannerBit/printer_interface.hpp
                include/gambit/ScannerBit/priors.hpp
                include/gambit/ScannerBit/priors_rollcall.hpp
                include/gambit/ScannerBit/python_scanner_bak.hpp
                include/gambit/ScannerBit/scan.hpp
                include/gambit/ScannerBit/scanner_plugin.hpp
                include/gambit/ScannerBit/scanner_utils.hpp
                include/gambit/ScannerBit/scannerbit.hpp
                include/gambit/ScannerBit/priors/cauchy.hpp
                include/gambit/ScannerBit/priors/composite.hpp
                include/gambit/ScannerBit/priors/doublelogflatjoin.hpp
                include/gambit/ScannerBit/priors/dummy.hpp
                include/gambit/ScannerBit/priors/fixed_same_as.hpp
                include/gambit/ScannerBit/priors/flat_log.hpp
                include/gambit/ScannerBit/priors/gaussian.hpp
                include/gambit/ScannerBit/priors/lognormal.hpp
                include/gambit/ScannerBit/priors/plugin.hpp
)

add_gambit_library( ScannerBit OPTION OBJECT SOURCES ${scannerbit_sources} HEADERS ${scannerbit_headers} )

set( scanner_scanlibs_sources
                src/scanlibs/scanlibs.cpp
)

set( scanner_scanlibs_headers
)

set( objective_plugin_sources_test_functions
                src/objectives/test_functions/examples.cpp
)

set( objective_plugin_headers_test_functions
)

set( scanner_plugin_sources_ais
                src/scanners/ais/ais.cpp
)

set( scanner_plugin_headers_ais
                include/gambit/ScannerBit/scanners/ais/ais.hpp
                include/gambit/ScannerBit/scanners/ais/random_tools.hpp
)

set( scanner_plugin_sources_diver_1.0.0
                src/scanners/diver_1.0.0/diver.cpp
)

set( scanner_plugin_headers_diver_1.0.0
                include/gambit/ScannerBit/scanners/diver_1.0.0/diver.hpp
)

set( scanner_plugin_sources_diver_1.0.2
                src/scanners/diver_1.0.2/diver.cpp
)

set( scanner_plugin_headers_diver_1.0.2
                include/gambit/ScannerBit/scanners/diver_1.0.2/diver.hpp
)

set( scanner_plugin_sources_diver_1.0.4
                src/scanners/diver_1.0.4/diver.cpp
)

set( scanner_plugin_headers_diver_1.0.4
                include/gambit/ScannerBit/scanners/diver_1.0.4/diver.hpp
)

set( scanner_plugin_sources_diver_1.0.5
                src/scanners/diver_1.0.5/diver.cpp
)

set( scanner_plugin_headers_diver_1.0.5
                include/gambit/ScannerBit/scanners/diver_1.0.5/diver.hpp
)

message("${BoldCyan} X Excluding great 1.0.0 from ScannerBit configuration.${ColourReset}")

set( scanner_plugin_sources_jswarm
                src/scanners/jswarm/jswarm.cpp
                src/scanners/jswarm/particle.cpp
                src/scanners/jswarm/particle_swarm.cpp
)

set( scanner_plugin_headers_jswarm
                include/gambit/ScannerBit/scanners/jswarm/jswarm.hpp
)

set( scanner_plugin_sources_minuit2_6.23.01
                src/scanners/minuit2_6.23.01/minuit2.cpp
)

set( scanner_plugin_headers_minuit2_6.23.01
)

set( scanner_plugin_sources_multinest_3.10
                src/scanners/multinest_3.10/multinest.cpp
)

set( scanner_plugin_headers_multinest_3.10
                include/gambit/ScannerBit/scanners/multinest_3.10/multinest.hpp
)

set( scanner_plugin_sources_multinest_3.11
                src/scanners/multinest_3.11/multinest.cpp
)

set( scanner_plugin_headers_multinest_3.11
                include/gambit/ScannerBit/scanners/multinest_3.11/multinest.hpp
)

set( scanner_plugin_sources_polychord
                src/scanners/polychord/polychord.cpp
)

set( scanner_plugin_headers_polychord
                include/gambit/ScannerBit/scanners/polychord/polychord.hpp
)

set( scanner_plugin_sources_postprocessor_1.0.0
                src/scanners/postprocessor_1.0.0/postprocessor.cpp
                src/scanners/postprocessor_1.0.0/postprocessor_object.cpp
)

set( scanner_plugin_headers_postprocessor_1.0.0
                include/gambit/ScannerBit/scanners/postprocessor_1.0.0/chunks.hpp
                include/gambit/ScannerBit/scanners/postprocessor_1.0.0/postprocessor.hpp
)

set( scanner_plugin_sources_postprocessor_2.0.0
                src/scanners/postprocessor_2.0.0/postprocessor.cpp
                src/scanners/postprocessor_2.0.0/postprocessor_object.cpp
)

set( scanner_plugin_headers_postprocessor_2.0.0
                include/gambit/ScannerBit/scanners/postprocessor_2.0.0/chunks.hpp
                include/gambit/ScannerBit/scanners/postprocessor_2.0.0/postprocessor.hpp
)

set( scanner_plugin_sources_simple
                src/scanners/simple/grid.cpp
                src/scanners/simple/random.cpp
                src/scanners/simple/raster.cpp
                src/scanners/simple/square_grid.cpp
                src/scanners/simple/toy_mcmc.cpp
)

set( scanner_plugin_headers_simple
                include/gambit/ScannerBit/scanners/simple/random_tools.hpp
)

set( scanner_plugin_sources_twalk
                src/scanners/twalk/twalk.cpp
)

set( scanner_plugin_headers_twalk
                include/gambit/ScannerBit/scanners/twalk/mpi_distribute.hpp
                include/gambit/ScannerBit/scanners/twalk/random_tools.hpp
                include/gambit/ScannerBit/scanners/twalk/twalk.hpp
)

# Add the ScannerBit linking flag utility
add_executable(scanlibs ${scanner_scanlibs_sources} ${scanner_scanlibs_headers})
if(${CMAKE_VERSION} VERSION_GREATER 2.8.10)
    target_include_directories(scanlibs PUBLIC ${PROJECT_SOURCE_DIR}/cmake/include)
else()
    include_directories(${PROJECT_SOURCE_DIR}/cmake/include)
endif()
add_dependencies(scanlibs yaml-cpp)
target_link_libraries(scanlibs yaml-cpp)
set_target_properties(scanlibs PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/ScannerBit/bin")

# Specify known plugin include paths
set( PLUGIN_INCLUDE_DIRECTORIES
                ${PROJECT_BINARY_DIR}
                ${PROJECT_BINARY_DIR}/cmake
                ${GAMBIT_INCDIRS}
                ${mkpath_INCLUDE_DIR}
                ${yaml_INCLUDE_DIR}
                ${Boost_INCLUDE_DIR}
                ${GSL_INCLUDE_DIRS}
                ${ROOT_INCLUDE_DIR}
                ${ROOT_INCLUDE_DIRS}
                ${PROJECT_SOURCE_DIR}/ScannerBit/include/gambit/ScannerBit
)

if( ${PLUG_VERBOSE} )
    message("*** begin PLUG_INCLUDE_DIRECTORIES ***")
    foreach(dir ${PLUGIN_INCLUDE_DIRECTORIES})
        message(STATUS "dir='${dir}'")
    endforeach()
    message("*** end PLUG_INCLUDE_DIRECTORIES ***")
endif()

set( reqd_lib_output )
set( exclude_lib_output )
set( PLUGIN_COMPILE_FLAGS "${BACKEND_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")

if(MPI_C_FOUND)
    set( PLUGIN_COMPILE_FLAGS "${PLUGIN_COMPILE_FLAGS} ${MPI_C_COMPILE_FLAGS}" )
    set( PLUGIN_COMPILE_DIRECTORIES
                ${PLUGIN_COMPILE_DIRECTORIES}
                ${MPI_C_COMPILE_PATH}
    )
    set( PLUGIN_INCLUDE_DIRECTORIES
                ${PLUGIN_INCLUDE_DIRECTORIES}
                ${MPI_C_INCLUDE_PATH}
    )
endif()

if(MPI_CXX_FOUND)
    set( PLUGIN_COMPILE_FLAGS "${PLUGIN_COMPILE_FLAGS} ${MPI_CXX_COMPILE_FLAGS}" )
    set( PLUGIN_COMPILE_DIRECTORIES
                ${PLUGIN_COMPILE_DIRECTORIES}
                ${MPI_CXX_COMPILE_PATH}
    )
    set( PLUGIN_INCLUDE_DIRECTORIES
                ${PLUGIN_INCLUDE_DIRECTORIES}
                ${MPI_CXX_INCLUDE_PATH}
    )
endif()

#################### libobjective_test_functions.so ####################

set (objective_ok_flag_test_functions "")

set (objective_compile_flags_test_functions "${PLUGIN_COMPILE_FLAGS}")

set (objective_plugin_libraries_test_functions
)

set (objective_plugin_lib_paths_test_functions
)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    set (objective_plugin_rpath_test_functions
    )
else()
    set (objective_plugin_rpath_test_functions
    )
endif()

set (objective_plugin_includes_test_functions
                ${PLUGIN_INCLUDE_DIRECTORIES}
                ${CMAKE_CURRENT_SOURCE_DIR}/include/gambit/ScannerBit/objectives/test_functions
)

set (objective_plugin_linked_libs_test_functions "")

set (objective_plugin_lib_full_paths_test_functions
)

set (objective_plugin_found_incs_test_functions "")


if( NOT ${objective_plugin_linked_libs_test_functions} STREQUAL "" OR NOT ${objective_plugin_found_incs_test_functions} STREQUAL "")
    set ( reqd_lib_output "${reqd_lib_output}libobjective_test_functions.so:\n" )
    if( NOT ${objective_plugin_linked_libs_test_functions} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  linked_libs: \n${objective_plugin_linked_libs_test_functions}")
    endif()
    if( NOT ${objective_plugin_found_incs_test_functions} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  found_incs: \n${objective_plugin_found_incs_test_functions}")
    endif()
endif()

if ( objective_ok_flag_test_functions STREQUAL "" )
    add_gambit_library( objective_test_functions VISIBLE OPTION SHARED SOURCES ${objective_plugin_sources_test_functions} HEADERS ${objective_plugin_headers_test_functions} )
    set_target_properties( objective_test_functions
                       PROPERTIES
                       INSTALL_RPATH "${objective_plugin_rpath_test_functions}"
                       COMPILE_FLAGS "${objective_compile_flags_test_functions}"
                       INCLUDE_DIRECTORIES "${objective_plugin_includes_test_functions}"
                       ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib"
                       LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib")
    target_link_libraries( objective_test_functions ${objective_plugin_lib_full_paths_test_functions})
    set (SCANNERBIT_PLUGINS ${SCANNERBIT_PLUGINS} objective_test_functions)
else()
    set ( exclude_lib_output "${exclude_lib_output}libobjective_test_functions.so:\n  plugins:\n    - uniform__t__objective__v__1_0_0_\n    - gaussian__t__objective__v__1_0_0_\n    - normal_example__t__objective__v__1_0_0_\n    - EggBox__t__objective__v__1_0_0_\n    - flat_prior__t__objective__v__1_0_0_\n  reason: ${objective_ok_flag_test_functions}\n\n" )
endif()

#################### libscanner_ais.so ####################

set (scanner_ok_flag_ais "")

set (scanner_compile_flags_ais "${PLUGIN_COMPILE_FLAGS}")

set (scanner_plugin_libraries_ais
)

set (scanner_plugin_lib_paths_ais
)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    set (scanner_plugin_rpath_ais
    )
else()
    set (scanner_plugin_rpath_ais
    )
endif()

set (scanner_plugin_includes_ais
                ${PLUGIN_INCLUDE_DIRECTORIES}
                ${CMAKE_CURRENT_SOURCE_DIR}/include/gambit/ScannerBit/scanners/ais
)

set (scanner_plugin_linked_libs_ais "")

set (scanner_plugin_lib_full_paths_ais
)

set (scanner_plugin_found_incs_ais "")


if( NOT ${scanner_plugin_linked_libs_ais} STREQUAL "" OR NOT ${scanner_plugin_found_incs_ais} STREQUAL "")
    set ( reqd_lib_output "${reqd_lib_output}libscanner_ais.so:\n" )
    if( NOT ${scanner_plugin_linked_libs_ais} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  linked_libs: \n${scanner_plugin_linked_libs_ais}")
    endif()
    if( NOT ${scanner_plugin_found_incs_ais} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  found_incs: \n${scanner_plugin_found_incs_ais}")
    endif()
endif()

if ( scanner_ok_flag_ais STREQUAL "" )
    add_gambit_library( scanner_ais VISIBLE OPTION SHARED SOURCES ${scanner_plugin_sources_ais} HEADERS ${scanner_plugin_headers_ais} )
    set_target_properties( scanner_ais
                       PROPERTIES
                       INSTALL_RPATH "${scanner_plugin_rpath_ais}"
                       COMPILE_FLAGS "${scanner_compile_flags_ais}"
                       INCLUDE_DIRECTORIES "${scanner_plugin_includes_ais}"
                       ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib"
                       LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib")
    target_link_libraries( scanner_ais ${scanner_plugin_lib_full_paths_ais})
    set (SCANNERBIT_PLUGINS ${SCANNERBIT_PLUGINS} scanner_ais)
else()
    set ( exclude_lib_output "${exclude_lib_output}libscanner_ais.so:\n  plugins:\n    - badass__t__scanner__v__1_0_0_\n  reason: ${scanner_ok_flag_ais}\n\n" )
endif()

#################### libscanner_diver_1.0.0.so ####################

set (scanner_ok_flag_diver_1.0.0 "")

set (scanner_compile_flags_diver_1.0.0 "${PLUGIN_COMPILE_FLAGS}")

set (scanner_plugin_libraries_diver_1.0.0
)

set (scanner_plugin_lib_paths_diver_1.0.0
)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    set (scanner_plugin_rpath_diver_1.0.0
    )
else()
    set (scanner_plugin_rpath_diver_1.0.0
    )
endif()

set (scanner_plugin_includes_diver_1.0.0
                ${PLUGIN_INCLUDE_DIRECTORIES}
                ${CMAKE_CURRENT_SOURCE_DIR}/include/gambit/ScannerBit/scanners/diver_1.0.0
)

set (scanner_plugin_linked_libs_diver_1.0.0 "")

set (scanner_plugin_lib_full_paths_diver_1.0.0
)

set (scanner_plugin_found_incs_diver_1.0.0 "")


unset(scanner_diver_1.0.0_diver_LIBRARY CACHE)
find_library( scanner_diver_1.0.0_diver_LIBRARY diver HINTS ${scanner_plugin_lib_paths_diver_1.0.0} )
if( scanner_diver_1.0.0_diver_LIBRARY STREQUAL "scanner_diver_1.0.0_diver_LIBRARY-NOTFOUND" )
    message("-- Did not find scanner library diver for diver_1.0.0. Disabling scanners that depend on this.")
    # next line will exclude plugins if no lib found.  Note that if you un-comment this line
    # all plugins plugins defined in this library will be excluded.
    # set (scanner_ok_flag_diver_1.0.0 "${scanner_ok_flag_diver_1.0.0} \n    - library missing: \"libdiver.so\"")
else()
    get_filename_component(lib_path ${scanner_diver_1.0.0_diver_LIBRARY} PATH)
    get_filename_component(lib_name ${scanner_diver_1.0.0_diver_LIBRARY} NAME_WE)
    string (REGEX REPLACE "^lib" "" lib_name ${lib_name})
    set (scanner_plugin_libraries_diver_1.0.0 "${scanner_plugin_libraries_diver_1.0.0} -L${lib_path} -l${lib_name}")
    set (scanner_plugin_lib_full_paths_diver_1.0.0 ${scanner_plugin_lib_full_paths_diver_1.0.0} ${scanner_diver_1.0.0_diver_LIBRARY})
    set (scanner_plugin_rpath_diver_1.0.0 "${scanner_plugin_rpath_diver_1.0.0};${lib_path}")
    set (scanner_plugin_linked_libs_diver_1.0.0 "${scanner_plugin_linked_libs_diver_1.0.0}    diver: ${scanner_diver_1.0.0_diver_LIBRARY}\n")
    message("-- Found scanner library: ${scanner_diver_1.0.0_diver_LIBRARY}")
endif()

if( NOT ${scanner_plugin_linked_libs_diver_1.0.0} STREQUAL "" OR NOT ${scanner_plugin_found_incs_diver_1.0.0} STREQUAL "")
    set ( reqd_lib_output "${reqd_lib_output}libscanner_diver_1.0.0.so:\n" )
    if( NOT ${scanner_plugin_linked_libs_diver_1.0.0} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  linked_libs: \n${scanner_plugin_linked_libs_diver_1.0.0}")
    endif()
    if( NOT ${scanner_plugin_found_incs_diver_1.0.0} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  found_incs: \n${scanner_plugin_found_incs_diver_1.0.0}")
    endif()
endif()

if ( scanner_ok_flag_diver_1.0.0 STREQUAL "" )
    add_gambit_library( scanner_diver_1.0.0 VISIBLE OPTION SHARED SOURCES ${scanner_plugin_sources_diver_1.0.0} HEADERS ${scanner_plugin_headers_diver_1.0.0} )
    set_target_properties( scanner_diver_1.0.0
                       PROPERTIES
                       INSTALL_RPATH "${scanner_plugin_rpath_diver_1.0.0}"
                       COMPILE_FLAGS "${scanner_compile_flags_diver_1.0.0}"
                       INCLUDE_DIRECTORIES "${scanner_plugin_includes_diver_1.0.0}"
                       ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib"
                       LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib")
    target_link_libraries( scanner_diver_1.0.0 ${scanner_plugin_lib_full_paths_diver_1.0.0})
    set (SCANNERBIT_PLUGINS ${SCANNERBIT_PLUGINS} scanner_diver_1.0.0)
else()
    set ( exclude_lib_output "${exclude_lib_output}libscanner_diver_1.0.0.so:\n  plugins:\n    - diver__t__scanner__v__1_0_0_\n  reason: ${scanner_ok_flag_diver_1.0.0}\n\n" )
endif()

#################### libscanner_diver_1.0.2.so ####################

set (scanner_ok_flag_diver_1.0.2 "")

set (scanner_compile_flags_diver_1.0.2 "${PLUGIN_COMPILE_FLAGS}")

set (scanner_plugin_libraries_diver_1.0.2
)

set (scanner_plugin_lib_paths_diver_1.0.2
)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    set (scanner_plugin_rpath_diver_1.0.2
    )
else()
    set (scanner_plugin_rpath_diver_1.0.2
    )
endif()

set (scanner_plugin_includes_diver_1.0.2
                ${PLUGIN_INCLUDE_DIRECTORIES}
                ${CMAKE_CURRENT_SOURCE_DIR}/include/gambit/ScannerBit/scanners/diver_1.0.2
)

set (scanner_plugin_linked_libs_diver_1.0.2 "")

set (scanner_plugin_lib_full_paths_diver_1.0.2
)

set (scanner_plugin_found_incs_diver_1.0.2 "")


unset(scanner_diver_1.0.2_diver_LIBRARY CACHE)
find_library( scanner_diver_1.0.2_diver_LIBRARY diver HINTS ${scanner_plugin_lib_paths_diver_1.0.2} )
if( scanner_diver_1.0.2_diver_LIBRARY STREQUAL "scanner_diver_1.0.2_diver_LIBRARY-NOTFOUND" )
    message("-- Did not find scanner library diver for diver_1.0.2. Disabling scanners that depend on this.")
    # next line will exclude plugins if no lib found.  Note that if you un-comment this line
    # all plugins plugins defined in this library will be excluded.
    # set (scanner_ok_flag_diver_1.0.2 "${scanner_ok_flag_diver_1.0.2} \n    - library missing: \"libdiver.so\"")
else()
    get_filename_component(lib_path ${scanner_diver_1.0.2_diver_LIBRARY} PATH)
    get_filename_component(lib_name ${scanner_diver_1.0.2_diver_LIBRARY} NAME_WE)
    string (REGEX REPLACE "^lib" "" lib_name ${lib_name})
    set (scanner_plugin_libraries_diver_1.0.2 "${scanner_plugin_libraries_diver_1.0.2} -L${lib_path} -l${lib_name}")
    set (scanner_plugin_lib_full_paths_diver_1.0.2 ${scanner_plugin_lib_full_paths_diver_1.0.2} ${scanner_diver_1.0.2_diver_LIBRARY})
    set (scanner_plugin_rpath_diver_1.0.2 "${scanner_plugin_rpath_diver_1.0.2};${lib_path}")
    set (scanner_plugin_linked_libs_diver_1.0.2 "${scanner_plugin_linked_libs_diver_1.0.2}    diver: ${scanner_diver_1.0.2_diver_LIBRARY}\n")
    message("-- Found scanner library: ${scanner_diver_1.0.2_diver_LIBRARY}")
endif()

if( NOT ${scanner_plugin_linked_libs_diver_1.0.2} STREQUAL "" OR NOT ${scanner_plugin_found_incs_diver_1.0.2} STREQUAL "")
    set ( reqd_lib_output "${reqd_lib_output}libscanner_diver_1.0.2.so:\n" )
    if( NOT ${scanner_plugin_linked_libs_diver_1.0.2} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  linked_libs: \n${scanner_plugin_linked_libs_diver_1.0.2}")
    endif()
    if( NOT ${scanner_plugin_found_incs_diver_1.0.2} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  found_incs: \n${scanner_plugin_found_incs_diver_1.0.2}")
    endif()
endif()

if ( scanner_ok_flag_diver_1.0.2 STREQUAL "" )
    add_gambit_library( scanner_diver_1.0.2 VISIBLE OPTION SHARED SOURCES ${scanner_plugin_sources_diver_1.0.2} HEADERS ${scanner_plugin_headers_diver_1.0.2} )
    set_target_properties( scanner_diver_1.0.2
                       PROPERTIES
                       INSTALL_RPATH "${scanner_plugin_rpath_diver_1.0.2}"
                       COMPILE_FLAGS "${scanner_compile_flags_diver_1.0.2}"
                       INCLUDE_DIRECTORIES "${scanner_plugin_includes_diver_1.0.2}"
                       ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib"
                       LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib")
    target_link_libraries( scanner_diver_1.0.2 ${scanner_plugin_lib_full_paths_diver_1.0.2})
    set (SCANNERBIT_PLUGINS ${SCANNERBIT_PLUGINS} scanner_diver_1.0.2)
else()
    set ( exclude_lib_output "${exclude_lib_output}libscanner_diver_1.0.2.so:\n  plugins:\n    - diver__t__scanner__v__1_0_2_\n  reason: ${scanner_ok_flag_diver_1.0.2}\n\n" )
endif()

#################### libscanner_diver_1.0.4.so ####################

set (scanner_ok_flag_diver_1.0.4 "")

set (scanner_compile_flags_diver_1.0.4 "${PLUGIN_COMPILE_FLAGS}")

set (scanner_plugin_libraries_diver_1.0.4 
                "-L/home/gmartine/gambit/ScannerBit/installed/diver/1.0.4/lib -ldiver "
)

set (scanner_plugin_lib_paths_diver_1.0.4
)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    execute_process(RESULT_VARIABLE result 
                    COMMAND ${CMAKE_INSTALL_NAME_TOOL} -id "@rpath/libdiver.so" /home/gmartine/gambit/ScannerBit/installed/diver/1.0.4/lib/libdiver.so 
                    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
    )
    
    set (scanner_plugin_rpath_diver_1.0.4
                @loader_path/../../ScannerBit/installed/diver/1.0.4/lib
    )
else()
    set (scanner_plugin_rpath_diver_1.0.4
                $ORIGIN/../../ScannerBit/installed/diver/1.0.4/lib
    )
endif()

set (scanner_plugin_includes_diver_1.0.4
                ${PLUGIN_INCLUDE_DIRECTORIES}
                ${CMAKE_CURRENT_SOURCE_DIR}/include/gambit/ScannerBit/scanners/diver_1.0.4
)

set (scanner_plugin_linked_libs_diver_1.0.4 "")

set (scanner_plugin_linked_libs_diver_1.0.4 "${scanner_plugin_linked_libs_diver_1.0.4}    diver: /home/gmartine/gambit/ScannerBit/installed/diver/1.0.4/lib/libdiver.so\n")

set (scanner_plugin_lib_full_paths_diver_1.0.4
                /home/gmartine/gambit/ScannerBit/installed/diver/1.0.4/lib/libdiver.so
)

set (scanner_plugin_found_incs_diver_1.0.4 "")


if( NOT ${scanner_plugin_linked_libs_diver_1.0.4} STREQUAL "" OR NOT ${scanner_plugin_found_incs_diver_1.0.4} STREQUAL "")
    set ( reqd_lib_output "${reqd_lib_output}libscanner_diver_1.0.4.so:\n" )
    if( NOT ${scanner_plugin_linked_libs_diver_1.0.4} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  linked_libs: \n${scanner_plugin_linked_libs_diver_1.0.4}")
    endif()
    if( NOT ${scanner_plugin_found_incs_diver_1.0.4} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  found_incs: \n${scanner_plugin_found_incs_diver_1.0.4}")
    endif()
endif()

if ( scanner_ok_flag_diver_1.0.4 STREQUAL "" )
    add_gambit_library( scanner_diver_1.0.4 VISIBLE OPTION SHARED SOURCES ${scanner_plugin_sources_diver_1.0.4} HEADERS ${scanner_plugin_headers_diver_1.0.4} )
    set_target_properties( scanner_diver_1.0.4
                       PROPERTIES
                       INSTALL_RPATH "${scanner_plugin_rpath_diver_1.0.4}"
                       COMPILE_FLAGS "${scanner_compile_flags_diver_1.0.4}"
                       INCLUDE_DIRECTORIES "${scanner_plugin_includes_diver_1.0.4}"
                       ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib"
                       LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib")
    target_link_libraries( scanner_diver_1.0.4 ${scanner_plugin_lib_full_paths_diver_1.0.4})
    set (SCANNERBIT_PLUGINS ${SCANNERBIT_PLUGINS} scanner_diver_1.0.4)
else()
    set ( exclude_lib_output "${exclude_lib_output}libscanner_diver_1.0.4.so:\n  plugins:\n    - diver__t__scanner__v__1_0_4_\n  reason: ${scanner_ok_flag_diver_1.0.4}\n\n" )
endif()

#################### libscanner_diver_1.0.5.so ####################

set (scanner_ok_flag_diver_1.0.5 "")

set (scanner_compile_flags_diver_1.0.5 "${PLUGIN_COMPILE_FLAGS}")

set (scanner_plugin_libraries_diver_1.0.5
)

set (scanner_plugin_lib_paths_diver_1.0.5
)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    set (scanner_plugin_rpath_diver_1.0.5
    )
else()
    set (scanner_plugin_rpath_diver_1.0.5
    )
endif()

set (scanner_plugin_includes_diver_1.0.5
                ${PLUGIN_INCLUDE_DIRECTORIES}
                ${CMAKE_CURRENT_SOURCE_DIR}/include/gambit/ScannerBit/scanners/diver_1.0.5
)

set (scanner_plugin_linked_libs_diver_1.0.5 "")

set (scanner_plugin_lib_full_paths_diver_1.0.5
)

set (scanner_plugin_found_incs_diver_1.0.5 "")


unset(scanner_diver_1.0.5_diver_LIBRARY CACHE)
find_library( scanner_diver_1.0.5_diver_LIBRARY diver HINTS ${scanner_plugin_lib_paths_diver_1.0.5} )
if( scanner_diver_1.0.5_diver_LIBRARY STREQUAL "scanner_diver_1.0.5_diver_LIBRARY-NOTFOUND" )
    message("-- Did not find scanner library diver for diver_1.0.5. Disabling scanners that depend on this.")
    # next line will exclude plugins if no lib found.  Note that if you un-comment this line
    # all plugins plugins defined in this library will be excluded.
    # set (scanner_ok_flag_diver_1.0.5 "${scanner_ok_flag_diver_1.0.5} \n    - library missing: \"libdiver.so\"")
else()
    get_filename_component(lib_path ${scanner_diver_1.0.5_diver_LIBRARY} PATH)
    get_filename_component(lib_name ${scanner_diver_1.0.5_diver_LIBRARY} NAME_WE)
    string (REGEX REPLACE "^lib" "" lib_name ${lib_name})
    set (scanner_plugin_libraries_diver_1.0.5 "${scanner_plugin_libraries_diver_1.0.5} -L${lib_path} -l${lib_name}")
    set (scanner_plugin_lib_full_paths_diver_1.0.5 ${scanner_plugin_lib_full_paths_diver_1.0.5} ${scanner_diver_1.0.5_diver_LIBRARY})
    set (scanner_plugin_rpath_diver_1.0.5 "${scanner_plugin_rpath_diver_1.0.5};${lib_path}")
    set (scanner_plugin_linked_libs_diver_1.0.5 "${scanner_plugin_linked_libs_diver_1.0.5}    diver: ${scanner_diver_1.0.5_diver_LIBRARY}\n")
    message("-- Found scanner library: ${scanner_diver_1.0.5_diver_LIBRARY}")
endif()

if( NOT ${scanner_plugin_linked_libs_diver_1.0.5} STREQUAL "" OR NOT ${scanner_plugin_found_incs_diver_1.0.5} STREQUAL "")
    set ( reqd_lib_output "${reqd_lib_output}libscanner_diver_1.0.5.so:\n" )
    if( NOT ${scanner_plugin_linked_libs_diver_1.0.5} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  linked_libs: \n${scanner_plugin_linked_libs_diver_1.0.5}")
    endif()
    if( NOT ${scanner_plugin_found_incs_diver_1.0.5} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  found_incs: \n${scanner_plugin_found_incs_diver_1.0.5}")
    endif()
endif()

if ( scanner_ok_flag_diver_1.0.5 STREQUAL "" )
    add_gambit_library( scanner_diver_1.0.5 VISIBLE OPTION SHARED SOURCES ${scanner_plugin_sources_diver_1.0.5} HEADERS ${scanner_plugin_headers_diver_1.0.5} )
    set_target_properties( scanner_diver_1.0.5
                       PROPERTIES
                       INSTALL_RPATH "${scanner_plugin_rpath_diver_1.0.5}"
                       COMPILE_FLAGS "${scanner_compile_flags_diver_1.0.5}"
                       INCLUDE_DIRECTORIES "${scanner_plugin_includes_diver_1.0.5}"
                       ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib"
                       LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib")
    target_link_libraries( scanner_diver_1.0.5 ${scanner_plugin_lib_full_paths_diver_1.0.5})
    set (SCANNERBIT_PLUGINS ${SCANNERBIT_PLUGINS} scanner_diver_1.0.5)
else()
    set ( exclude_lib_output "${exclude_lib_output}libscanner_diver_1.0.5.so:\n  plugins:\n    - diver__t__scanner__v__1_0_5_\n  reason: ${scanner_ok_flag_diver_1.0.5}\n\n" )
endif()

#################### libscanner_great.so ####################

set (scanner_ok_flag_great "")

set (scanner_compile_flags_great "${PLUGIN_COMPILE_FLAGS}")

set (scanner_ok_flag_great "\n    - user excluded plugin: \"great\"")

set (scanner_plugin_libraries_great
)

set (scanner_plugin_lib_paths_great
)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    set (scanner_plugin_rpath_great
    )
else()
    set (scanner_plugin_rpath_great
    )
endif()

set (scanner_plugin_includes_great
                ${PLUGIN_INCLUDE_DIRECTORIES}
                ${CMAKE_CURRENT_SOURCE_DIR}/include/gambit/ScannerBit/scanners/great
)

set (scanner_plugin_linked_libs_great "")

set (scanner_plugin_lib_full_paths_great
)

set (scanner_plugin_found_incs_great "")


unset(scanner_great_great_LIBRARY CACHE)
find_library( scanner_great_great_LIBRARY great HINTS ${scanner_plugin_lib_paths_great} )
if( scanner_great_great_LIBRARY STREQUAL "scanner_great_great_LIBRARY-NOTFOUND" )
    message("-- Did not find scanner library great for great. Disabling scanners that depend on this.")
    # next line will exclude plugins if no lib found.  Note that if you un-comment this line
    # all plugins plugins defined in this library will be excluded.
    # set (scanner_ok_flag_great "${scanner_ok_flag_great} \n    - library missing: \"libgreat.so\"")
else()
    get_filename_component(lib_path ${scanner_great_great_LIBRARY} PATH)
    get_filename_component(lib_name ${scanner_great_great_LIBRARY} NAME_WE)
    string (REGEX REPLACE "^lib" "" lib_name ${lib_name})
    set (scanner_plugin_libraries_great "${scanner_plugin_libraries_great} -L${lib_path} -l${lib_name}")
    set (scanner_plugin_lib_full_paths_great ${scanner_plugin_lib_full_paths_great} ${scanner_great_great_LIBRARY})
    set (scanner_plugin_rpath_great "${scanner_plugin_rpath_great};${lib_path}")
    set (scanner_plugin_linked_libs_great "${scanner_plugin_linked_libs_great}    great: ${scanner_great_great_LIBRARY}\n")
    message("-- Found scanner library: ${scanner_great_great_LIBRARY}")
endif()

unset(scanner_great_fparser_hh_INCLUDE_PATH CACHE)
find_path( scanner_great_fparser_hh_INCLUDE_PATH "fparser.hh" HINTS ${scanner_plugin_includes_great})
if( NOT scanner_great_fparser_hh_INCLUDE_PATH STREQUAL "scanner_great_fparser_hh_INCLUDE_PATH-NOTFOUND" )
    set (scanner_plugin_includes_great
        ${scanner_plugin_includes_great}
        ${scanner_great_fparser_hh_INCLUDE_PATH}
    )
    set (scanner_plugin_found_incs_great "${scanner_plugin_found_incs_great}    \"fparser.hh\": ${scanner_great_fparser_hh_INCLUDE_PATH}\n")
    message("-- Found scanner header: ${scanner_great_fparser_hh_INCLUDE_PATH}/fparser.hh")
else()
    message("-- Did not find scanner header fparser.hh. Disabling scanners that depend on this.")
    set (scanner_ok_flag_great "${scanner_ok_flag_great} \n    - file missing: \"fparser.hh\"")
endif()

unset(scanner_great_TGreatManager_h_INCLUDE_PATH CACHE)
find_path( scanner_great_TGreatManager_h_INCLUDE_PATH "TGreatManager.h" HINTS ${scanner_plugin_includes_great})
if( NOT scanner_great_TGreatManager_h_INCLUDE_PATH STREQUAL "scanner_great_TGreatManager_h_INCLUDE_PATH-NOTFOUND" )
    set (scanner_plugin_includes_great
        ${scanner_plugin_includes_great}
        ${scanner_great_TGreatManager_h_INCLUDE_PATH}
    )
    set (scanner_plugin_found_incs_great "${scanner_plugin_found_incs_great}    \"TGreatManager.h\": ${scanner_great_TGreatManager_h_INCLUDE_PATH}\n")
    message("-- Found scanner header: ${scanner_great_TGreatManager_h_INCLUDE_PATH}/TGreatManager.h")
else()
    message("-- Did not find scanner header TGreatManager.h. Disabling scanners that depend on this.")
    set (scanner_ok_flag_great "${scanner_ok_flag_great} \n    - file missing: \"TGreatManager.h\"")
endif()

if (ROOT_FOUND)
    set (scanner_plugin_includes_great
        ${scanner_plugin_includes_great}
        ${ROOT_INCLUDE_DIRS}
    )
    set (scanner_plugin_found_incs_great "${scanner_plugin_found_incs_great}    \"ROOT\": ${ROOT_INCLUDE_DIRS}\n")
endif()

unset(scanner_great_TGreatMCMCAlgorithmCovariance_h_INCLUDE_PATH CACHE)
find_path( scanner_great_TGreatMCMCAlgorithmCovariance_h_INCLUDE_PATH "TGreatMCMCAlgorithmCovariance.h" HINTS ${scanner_plugin_includes_great})
if( NOT scanner_great_TGreatMCMCAlgorithmCovariance_h_INCLUDE_PATH STREQUAL "scanner_great_TGreatMCMCAlgorithmCovariance_h_INCLUDE_PATH-NOTFOUND" )
    set (scanner_plugin_includes_great
        ${scanner_plugin_includes_great}
        ${scanner_great_TGreatMCMCAlgorithmCovariance_h_INCLUDE_PATH}
    )
    set (scanner_plugin_found_incs_great "${scanner_plugin_found_incs_great}    \"TGreatMCMCAlgorithmCovariance.h\": ${scanner_great_TGreatMCMCAlgorithmCovariance_h_INCLUDE_PATH}\n")
    message("-- Found scanner header: ${scanner_great_TGreatMCMCAlgorithmCovariance_h_INCLUDE_PATH}/TGreatMCMCAlgorithmCovariance.h")
else()
    message("-- Did not find scanner header TGreatMCMCAlgorithmCovariance.h. Disabling scanners that depend on this.")
    set (scanner_ok_flag_great "${scanner_ok_flag_great} \n    - file missing: \"TGreatMCMCAlgorithmCovariance.h\"")
endif()

unset(scanner_great_TGreatModel_h_INCLUDE_PATH CACHE)
find_path( scanner_great_TGreatModel_h_INCLUDE_PATH "TGreatModel.h" HINTS ${scanner_plugin_includes_great})
if( NOT scanner_great_TGreatModel_h_INCLUDE_PATH STREQUAL "scanner_great_TGreatModel_h_INCLUDE_PATH-NOTFOUND" )
    set (scanner_plugin_includes_great
        ${scanner_plugin_includes_great}
        ${scanner_great_TGreatModel_h_INCLUDE_PATH}
    )
    set (scanner_plugin_found_incs_great "${scanner_plugin_found_incs_great}    \"TGreatModel.h\": ${scanner_great_TGreatModel_h_INCLUDE_PATH}\n")
    message("-- Found scanner header: ${scanner_great_TGreatModel_h_INCLUDE_PATH}/TGreatModel.h")
else()
    message("-- Did not find scanner header TGreatModel.h. Disabling scanners that depend on this.")
    set (scanner_ok_flag_great "${scanner_ok_flag_great} \n    - file missing: \"TGreatModel.h\"")
endif()

if( NOT ${scanner_plugin_linked_libs_great} STREQUAL "" OR NOT ${scanner_plugin_found_incs_great} STREQUAL "")
    set ( reqd_lib_output "${reqd_lib_output}libscanner_great.so:\n" )
    if( NOT ${scanner_plugin_linked_libs_great} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  linked_libs: \n${scanner_plugin_linked_libs_great}")
    endif()
    if( NOT ${scanner_plugin_found_incs_great} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  found_incs: \n${scanner_plugin_found_incs_great}")
    endif()
endif()

if ( scanner_ok_flag_great STREQUAL "" )
    add_gambit_library( scanner_great VISIBLE OPTION SHARED SOURCES ${scanner_plugin_sources_great} HEADERS ${scanner_plugin_headers_great} )
    set_target_properties( scanner_great
                       PROPERTIES
                       INSTALL_RPATH "${scanner_plugin_rpath_great}"
                       COMPILE_FLAGS "${scanner_compile_flags_great}"
                       INCLUDE_DIRECTORIES "${scanner_plugin_includes_great}"
                       ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib"
                       LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib")
    target_link_libraries( scanner_great ${scanner_plugin_lib_full_paths_great})
    set (SCANNERBIT_PLUGINS ${SCANNERBIT_PLUGINS} scanner_great)
else()
    set ( exclude_lib_output "${exclude_lib_output}libscanner_great.so:\n  plugins:\n    - great__t__scanner__v__1_0_0_\n  reason: ${scanner_ok_flag_great}\n\n" )
endif()

#################### libscanner_jswarm.so ####################

set (scanner_ok_flag_jswarm "")

set (scanner_compile_flags_jswarm "${PLUGIN_COMPILE_FLAGS}")

set (scanner_plugin_libraries_jswarm
)

set (scanner_plugin_lib_paths_jswarm
)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    set (scanner_plugin_rpath_jswarm
    )
else()
    set (scanner_plugin_rpath_jswarm
    )
endif()

set (scanner_plugin_includes_jswarm
                ${PLUGIN_INCLUDE_DIRECTORIES}
                ${CMAKE_CURRENT_SOURCE_DIR}/include/gambit/ScannerBit/scanners/jswarm
)

set (scanner_plugin_linked_libs_jswarm "")

set (scanner_plugin_lib_full_paths_jswarm
)

set (scanner_plugin_found_incs_jswarm "")


if( NOT ${scanner_plugin_linked_libs_jswarm} STREQUAL "" OR NOT ${scanner_plugin_found_incs_jswarm} STREQUAL "")
    set ( reqd_lib_output "${reqd_lib_output}libscanner_jswarm.so:\n" )
    if( NOT ${scanner_plugin_linked_libs_jswarm} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  linked_libs: \n${scanner_plugin_linked_libs_jswarm}")
    endif()
    if( NOT ${scanner_plugin_found_incs_jswarm} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  found_incs: \n${scanner_plugin_found_incs_jswarm}")
    endif()
endif()

if ( scanner_ok_flag_jswarm STREQUAL "" )
    add_gambit_library( scanner_jswarm VISIBLE OPTION SHARED SOURCES ${scanner_plugin_sources_jswarm} HEADERS ${scanner_plugin_headers_jswarm} )
    set_target_properties( scanner_jswarm
                       PROPERTIES
                       INSTALL_RPATH "${scanner_plugin_rpath_jswarm}"
                       COMPILE_FLAGS "${scanner_compile_flags_jswarm}"
                       INCLUDE_DIRECTORIES "${scanner_plugin_includes_jswarm}"
                       ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib"
                       LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib")
    target_link_libraries( scanner_jswarm ${scanner_plugin_lib_full_paths_jswarm})
    set (SCANNERBIT_PLUGINS ${SCANNERBIT_PLUGINS} scanner_jswarm)
else()
    set ( exclude_lib_output "${exclude_lib_output}libscanner_jswarm.so:\n  plugins:\n    - jswarm__t__scanner__v__1_0_0_\n  reason: ${scanner_ok_flag_jswarm}\n\n" )
endif()

#################### libscanner_minuit2_6.23.01.so ####################

set (scanner_ok_flag_minuit2_6.23.01 "")

set (scanner_compile_flags_minuit2_6.23.01 "${PLUGIN_COMPILE_FLAGS}")

set (scanner_plugin_libraries_minuit2_6.23.01 
                "-L/home/gmartine/gambit/ScannerBit/installed/minuit2/6.23.01/lib -lMinuit2 -L/home/gmartine/gambit/ScannerBit/installed/minuit2/6.23.01/lib -lMinuit2Math "
)

set (scanner_plugin_lib_paths_minuit2_6.23.01
)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    execute_process(RESULT_VARIABLE result 
                    COMMAND ${CMAKE_INSTALL_NAME_TOOL} -id "@rpath/libMinuit2.so" /home/gmartine/gambit/ScannerBit/installed/minuit2/6.23.01/lib/libMinuit2.so 
                    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
    )
    
    execute_process(RESULT_VARIABLE result 
                    COMMAND ${CMAKE_INSTALL_NAME_TOOL} -id "@rpath/libMinuit2Math.so" /home/gmartine/gambit/ScannerBit/installed/minuit2/6.23.01/lib/libMinuit2Math.so 
                    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
    )
    
    set (scanner_plugin_rpath_minuit2_6.23.01
                @loader_path/../../ScannerBit/installed/minuit2/6.23.01/lib
    )
else()
    set (scanner_plugin_rpath_minuit2_6.23.01
                $ORIGIN/../../ScannerBit/installed/minuit2/6.23.01/lib
    )
endif()

set (scanner_plugin_includes_minuit2_6.23.01
                ${PLUGIN_INCLUDE_DIRECTORIES}
                ${CMAKE_CURRENT_SOURCE_DIR}/include/gambit/ScannerBit/scanners/minuit2_6.23.01
                /home/gmartine/gambit/ScannerBit/installed/minuit2/6.23.01/inc
)

set (scanner_plugin_linked_libs_minuit2_6.23.01 "")

set (scanner_plugin_linked_libs_minuit2_6.23.01 "${scanner_plugin_linked_libs_minuit2_6.23.01}    Minuit2: /home/gmartine/gambit/ScannerBit/installed/minuit2/6.23.01/lib/libMinuit2.so\n")

set (scanner_plugin_linked_libs_minuit2_6.23.01 "${scanner_plugin_linked_libs_minuit2_6.23.01}    Minuit2Math: /home/gmartine/gambit/ScannerBit/installed/minuit2/6.23.01/lib/libMinuit2Math.so\n")

set (scanner_plugin_lib_full_paths_minuit2_6.23.01
                /home/gmartine/gambit/ScannerBit/installed/minuit2/6.23.01/lib/libMinuit2.so
                /home/gmartine/gambit/ScannerBit/installed/minuit2/6.23.01/lib/libMinuit2Math.so
)

set (scanner_plugin_found_incs_minuit2_6.23.01 "")

set (scanner_plugin_found_incs_minuit2_6.23.01 "${scanner_plugin_found_incs_minuit2_6.23.01}    \"scanner_locations.yaml\": /home/gmartine/gambit/ScannerBit/installed/minuit2/6.23.01/inc\n")


unset(scanner_minuit2_6.23.01_Math_Functor_h_INCLUDE_PATH CACHE)
find_path( scanner_minuit2_6.23.01_Math_Functor_h_INCLUDE_PATH "Math/Functor.h" HINTS ${scanner_plugin_includes_minuit2_6.23.01})
if( NOT scanner_minuit2_6.23.01_Math_Functor_h_INCLUDE_PATH STREQUAL "scanner_minuit2_6.23.01_Math_Functor_h_INCLUDE_PATH-NOTFOUND" )
    set (scanner_plugin_includes_minuit2_6.23.01
        ${scanner_plugin_includes_minuit2_6.23.01}
        ${scanner_minuit2_6.23.01_Math_Functor_h_INCLUDE_PATH}
    )
    set (scanner_plugin_found_incs_minuit2_6.23.01 "${scanner_plugin_found_incs_minuit2_6.23.01}    \"Math/Functor.h\": ${scanner_minuit2_6.23.01_Math_Functor_h_INCLUDE_PATH}\n")
    message("-- Found scanner header: ${scanner_minuit2_6.23.01_Math_Functor_h_INCLUDE_PATH}/Math/Functor.h")
else()
    message("-- Did not find scanner header Math/Functor.h. Disabling scanners that depend on this.")
    set (scanner_ok_flag_minuit2_6.23.01 "${scanner_ok_flag_minuit2_6.23.01} \n    - file missing: \"Math/Functor.h\"")
endif()

unset(scanner_minuit2_6.23.01_Minuit2_Minuit2Minimizer_h_INCLUDE_PATH CACHE)
find_path( scanner_minuit2_6.23.01_Minuit2_Minuit2Minimizer_h_INCLUDE_PATH "Minuit2/Minuit2Minimizer.h" HINTS ${scanner_plugin_includes_minuit2_6.23.01})
if( NOT scanner_minuit2_6.23.01_Minuit2_Minuit2Minimizer_h_INCLUDE_PATH STREQUAL "scanner_minuit2_6.23.01_Minuit2_Minuit2Minimizer_h_INCLUDE_PATH-NOTFOUND" )
    set (scanner_plugin_includes_minuit2_6.23.01
        ${scanner_plugin_includes_minuit2_6.23.01}
        ${scanner_minuit2_6.23.01_Minuit2_Minuit2Minimizer_h_INCLUDE_PATH}
    )
    set (scanner_plugin_found_incs_minuit2_6.23.01 "${scanner_plugin_found_incs_minuit2_6.23.01}    \"Minuit2/Minuit2Minimizer.h\": ${scanner_minuit2_6.23.01_Minuit2_Minuit2Minimizer_h_INCLUDE_PATH}\n")
    message("-- Found scanner header: ${scanner_minuit2_6.23.01_Minuit2_Minuit2Minimizer_h_INCLUDE_PATH}/Minuit2/Minuit2Minimizer.h")
else()
    message("-- Did not find scanner header Minuit2/Minuit2Minimizer.h. Disabling scanners that depend on this.")
    set (scanner_ok_flag_minuit2_6.23.01 "${scanner_ok_flag_minuit2_6.23.01} \n    - file missing: \"Minuit2/Minuit2Minimizer.h\"")
endif()

if( NOT ${scanner_plugin_linked_libs_minuit2_6.23.01} STREQUAL "" OR NOT ${scanner_plugin_found_incs_minuit2_6.23.01} STREQUAL "")
    set ( reqd_lib_output "${reqd_lib_output}libscanner_minuit2_6.23.01.so:\n" )
    if( NOT ${scanner_plugin_linked_libs_minuit2_6.23.01} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  linked_libs: \n${scanner_plugin_linked_libs_minuit2_6.23.01}")
    endif()
    if( NOT ${scanner_plugin_found_incs_minuit2_6.23.01} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  found_incs: \n${scanner_plugin_found_incs_minuit2_6.23.01}")
    endif()
endif()

if ( scanner_ok_flag_minuit2_6.23.01 STREQUAL "" )
    add_gambit_library( scanner_minuit2_6.23.01 VISIBLE OPTION SHARED SOURCES ${scanner_plugin_sources_minuit2_6.23.01} HEADERS ${scanner_plugin_headers_minuit2_6.23.01} )
    set_target_properties( scanner_minuit2_6.23.01
                       PROPERTIES
                       INSTALL_RPATH "${scanner_plugin_rpath_minuit2_6.23.01}"
                       COMPILE_FLAGS "${scanner_compile_flags_minuit2_6.23.01}"
                       INCLUDE_DIRECTORIES "${scanner_plugin_includes_minuit2_6.23.01}"
                       ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib"
                       LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib")
    target_link_libraries( scanner_minuit2_6.23.01 ${scanner_plugin_lib_full_paths_minuit2_6.23.01})
    set (SCANNERBIT_PLUGINS ${SCANNERBIT_PLUGINS} scanner_minuit2_6.23.01)
else()
    set ( exclude_lib_output "${exclude_lib_output}libscanner_minuit2_6.23.01.so:\n  plugins:\n    - minuit2__t__scanner__v__6_23_01_\n  reason: ${scanner_ok_flag_minuit2_6.23.01}\n\n" )
endif()

#################### libscanner_multinest_3.10.so ####################

set (scanner_ok_flag_multinest_3.10 "")

set (scanner_compile_flags_multinest_3.10 "${PLUGIN_COMPILE_FLAGS}")

set (scanner_plugin_libraries_multinest_3.10
)

set (scanner_plugin_lib_paths_multinest_3.10
)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    set (scanner_plugin_rpath_multinest_3.10
    )
else()
    set (scanner_plugin_rpath_multinest_3.10
    )
endif()

set (scanner_plugin_includes_multinest_3.10
                ${PLUGIN_INCLUDE_DIRECTORIES}
                ${CMAKE_CURRENT_SOURCE_DIR}/include/gambit/ScannerBit/scanners/multinest_3.10
)

set (scanner_plugin_linked_libs_multinest_3.10 "")

set (scanner_plugin_lib_full_paths_multinest_3.10
)

set (scanner_plugin_found_incs_multinest_3.10 "")


unset(scanner_multinest_3.10_nest3_LIBRARY CACHE)
find_library( scanner_multinest_3.10_nest3_LIBRARY nest3 HINTS ${scanner_plugin_lib_paths_multinest_3.10} )
if( scanner_multinest_3.10_nest3_LIBRARY STREQUAL "scanner_multinest_3.10_nest3_LIBRARY-NOTFOUND" )
    message("-- Did not find scanner library nest3 for multinest_3.10. Disabling scanners that depend on this.")
    # next line will exclude plugins if no lib found.  Note that if you un-comment this line
    # all plugins plugins defined in this library will be excluded.
    # set (scanner_ok_flag_multinest_3.10 "${scanner_ok_flag_multinest_3.10} \n    - library missing: \"libnest3.so\"")
else()
    get_filename_component(lib_path ${scanner_multinest_3.10_nest3_LIBRARY} PATH)
    get_filename_component(lib_name ${scanner_multinest_3.10_nest3_LIBRARY} NAME_WE)
    string (REGEX REPLACE "^lib" "" lib_name ${lib_name})
    set (scanner_plugin_libraries_multinest_3.10 "${scanner_plugin_libraries_multinest_3.10} -L${lib_path} -l${lib_name}")
    set (scanner_plugin_lib_full_paths_multinest_3.10 ${scanner_plugin_lib_full_paths_multinest_3.10} ${scanner_multinest_3.10_nest3_LIBRARY})
    set (scanner_plugin_rpath_multinest_3.10 "${scanner_plugin_rpath_multinest_3.10};${lib_path}")
    set (scanner_plugin_linked_libs_multinest_3.10 "${scanner_plugin_linked_libs_multinest_3.10}    nest3: ${scanner_multinest_3.10_nest3_LIBRARY}\n")
    message("-- Found scanner library: ${scanner_multinest_3.10_nest3_LIBRARY}")
endif()

if( NOT ${scanner_plugin_linked_libs_multinest_3.10} STREQUAL "" OR NOT ${scanner_plugin_found_incs_multinest_3.10} STREQUAL "")
    set ( reqd_lib_output "${reqd_lib_output}libscanner_multinest_3.10.so:\n" )
    if( NOT ${scanner_plugin_linked_libs_multinest_3.10} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  linked_libs: \n${scanner_plugin_linked_libs_multinest_3.10}")
    endif()
    if( NOT ${scanner_plugin_found_incs_multinest_3.10} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  found_incs: \n${scanner_plugin_found_incs_multinest_3.10}")
    endif()
endif()

if ( scanner_ok_flag_multinest_3.10 STREQUAL "" )
    add_gambit_library( scanner_multinest_3.10 VISIBLE OPTION SHARED SOURCES ${scanner_plugin_sources_multinest_3.10} HEADERS ${scanner_plugin_headers_multinest_3.10} )
    set_target_properties( scanner_multinest_3.10
                       PROPERTIES
                       INSTALL_RPATH "${scanner_plugin_rpath_multinest_3.10}"
                       COMPILE_FLAGS "${scanner_compile_flags_multinest_3.10}"
                       INCLUDE_DIRECTORIES "${scanner_plugin_includes_multinest_3.10}"
                       ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib"
                       LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib")
    target_link_libraries( scanner_multinest_3.10 ${scanner_plugin_lib_full_paths_multinest_3.10})
    set (SCANNERBIT_PLUGINS ${SCANNERBIT_PLUGINS} scanner_multinest_3.10)
else()
    set ( exclude_lib_output "${exclude_lib_output}libscanner_multinest_3.10.so:\n  plugins:\n    - multinest__t__scanner__v__3_10_0_\n  reason: ${scanner_ok_flag_multinest_3.10}\n\n" )
endif()

#################### libscanner_multinest_3.11.so ####################

set (scanner_ok_flag_multinest_3.11 "")

set (scanner_compile_flags_multinest_3.11 "${PLUGIN_COMPILE_FLAGS}")

set (scanner_plugin_libraries_multinest_3.11 
                "-L/home/gmartine/gambit/ScannerBit/installed/multinest/3.11 -lnest3 "
)

set (scanner_plugin_lib_paths_multinest_3.11
)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    execute_process(RESULT_VARIABLE result 
                    COMMAND ${CMAKE_INSTALL_NAME_TOOL} -id "@rpath/libnest3.so" /home/gmartine/gambit/ScannerBit/installed/multinest/3.11/libnest3.so 
                    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
    )
    
    set (scanner_plugin_rpath_multinest_3.11
                @loader_path/../../ScannerBit/installed/multinest/3.11
    )
else()
    set (scanner_plugin_rpath_multinest_3.11
                $ORIGIN/../../ScannerBit/installed/multinest/3.11
    )
endif()

set (scanner_plugin_includes_multinest_3.11
                ${PLUGIN_INCLUDE_DIRECTORIES}
                ${CMAKE_CURRENT_SOURCE_DIR}/include/gambit/ScannerBit/scanners/multinest_3.11
)

set (scanner_plugin_linked_libs_multinest_3.11 "")

set (scanner_plugin_linked_libs_multinest_3.11 "${scanner_plugin_linked_libs_multinest_3.11}    nest3: /home/gmartine/gambit/ScannerBit/installed/multinest/3.11/libnest3.so\n")

set (scanner_plugin_lib_full_paths_multinest_3.11
                /home/gmartine/gambit/ScannerBit/installed/multinest/3.11/libnest3.so
)

set (scanner_plugin_found_incs_multinest_3.11 "")


if( NOT ${scanner_plugin_linked_libs_multinest_3.11} STREQUAL "" OR NOT ${scanner_plugin_found_incs_multinest_3.11} STREQUAL "")
    set ( reqd_lib_output "${reqd_lib_output}libscanner_multinest_3.11.so:\n" )
    if( NOT ${scanner_plugin_linked_libs_multinest_3.11} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  linked_libs: \n${scanner_plugin_linked_libs_multinest_3.11}")
    endif()
    if( NOT ${scanner_plugin_found_incs_multinest_3.11} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  found_incs: \n${scanner_plugin_found_incs_multinest_3.11}")
    endif()
endif()

if ( scanner_ok_flag_multinest_3.11 STREQUAL "" )
    add_gambit_library( scanner_multinest_3.11 VISIBLE OPTION SHARED SOURCES ${scanner_plugin_sources_multinest_3.11} HEADERS ${scanner_plugin_headers_multinest_3.11} )
    set_target_properties( scanner_multinest_3.11
                       PROPERTIES
                       INSTALL_RPATH "${scanner_plugin_rpath_multinest_3.11}"
                       COMPILE_FLAGS "${scanner_compile_flags_multinest_3.11}"
                       INCLUDE_DIRECTORIES "${scanner_plugin_includes_multinest_3.11}"
                       ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib"
                       LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib")
    target_link_libraries( scanner_multinest_3.11 ${scanner_plugin_lib_full_paths_multinest_3.11})
    set (SCANNERBIT_PLUGINS ${SCANNERBIT_PLUGINS} scanner_multinest_3.11)
else()
    set ( exclude_lib_output "${exclude_lib_output}libscanner_multinest_3.11.so:\n  plugins:\n    - multinest__t__scanner__v__3_11_0_\n  reason: ${scanner_ok_flag_multinest_3.11}\n\n" )
endif()

#################### libscanner_polychord.so ####################

set (scanner_ok_flag_polychord "")

set (scanner_compile_flags_polychord "${PLUGIN_COMPILE_FLAGS}")

set (scanner_plugin_libraries_polychord 
                "-L/home/gmartine/gambit/ScannerBit/installed/polychord/1.17.1/lib -lchord "
)

set (scanner_plugin_lib_paths_polychord
)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    execute_process(RESULT_VARIABLE result 
                    COMMAND ${CMAKE_INSTALL_NAME_TOOL} -id "@rpath/libchord.so" /home/gmartine/gambit/ScannerBit/installed/polychord/1.17.1/lib/libchord.so 
                    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
    )
    
    set (scanner_plugin_rpath_polychord
                @loader_path/../../ScannerBit/installed/polychord/1.17.1/lib
    )
else()
    set (scanner_plugin_rpath_polychord
                $ORIGIN/../../ScannerBit/installed/polychord/1.17.1/lib
    )
endif()

set (scanner_plugin_includes_polychord
                ${PLUGIN_INCLUDE_DIRECTORIES}
                ${CMAKE_CURRENT_SOURCE_DIR}/include/gambit/ScannerBit/scanners/polychord
)

set (scanner_plugin_linked_libs_polychord "")

set (scanner_plugin_linked_libs_polychord "${scanner_plugin_linked_libs_polychord}    chord: /home/gmartine/gambit/ScannerBit/installed/polychord/1.17.1/lib/libchord.so\n")

set (scanner_plugin_lib_full_paths_polychord
                /home/gmartine/gambit/ScannerBit/installed/polychord/1.17.1/lib/libchord.so
)

set (scanner_plugin_found_incs_polychord "")


if( NOT ${scanner_plugin_linked_libs_polychord} STREQUAL "" OR NOT ${scanner_plugin_found_incs_polychord} STREQUAL "")
    set ( reqd_lib_output "${reqd_lib_output}libscanner_polychord.so:\n" )
    if( NOT ${scanner_plugin_linked_libs_polychord} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  linked_libs: \n${scanner_plugin_linked_libs_polychord}")
    endif()
    if( NOT ${scanner_plugin_found_incs_polychord} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  found_incs: \n${scanner_plugin_found_incs_polychord}")
    endif()
endif()

if ( scanner_ok_flag_polychord STREQUAL "" )
    add_gambit_library( scanner_polychord VISIBLE OPTION SHARED SOURCES ${scanner_plugin_sources_polychord} HEADERS ${scanner_plugin_headers_polychord} )
    set_target_properties( scanner_polychord
                       PROPERTIES
                       INSTALL_RPATH "${scanner_plugin_rpath_polychord}"
                       COMPILE_FLAGS "${scanner_compile_flags_polychord}"
                       INCLUDE_DIRECTORIES "${scanner_plugin_includes_polychord}"
                       ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib"
                       LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib")
    target_link_libraries( scanner_polychord ${scanner_plugin_lib_full_paths_polychord})
    set (SCANNERBIT_PLUGINS ${SCANNERBIT_PLUGINS} scanner_polychord)
else()
    set ( exclude_lib_output "${exclude_lib_output}libscanner_polychord.so:\n  plugins:\n    - polychord__t__scanner__v__1_17_1_\n  reason: ${scanner_ok_flag_polychord}\n\n" )
endif()

#################### libscanner_postprocessor_1.0.0.so ####################

set (scanner_ok_flag_postprocessor_1.0.0 "")

set (scanner_compile_flags_postprocessor_1.0.0 "${PLUGIN_COMPILE_FLAGS}")

set (scanner_plugin_libraries_postprocessor_1.0.0
)

set (scanner_plugin_lib_paths_postprocessor_1.0.0
)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    set (scanner_plugin_rpath_postprocessor_1.0.0
    )
else()
    set (scanner_plugin_rpath_postprocessor_1.0.0
    )
endif()

set (scanner_plugin_includes_postprocessor_1.0.0
                ${PLUGIN_INCLUDE_DIRECTORIES}
                ${CMAKE_CURRENT_SOURCE_DIR}/include/gambit/ScannerBit/scanners/postprocessor_1.0.0
)

set (scanner_plugin_linked_libs_postprocessor_1.0.0 "")

set (scanner_plugin_lib_full_paths_postprocessor_1.0.0
)

set (scanner_plugin_found_incs_postprocessor_1.0.0 "")


if( NOT ${scanner_plugin_linked_libs_postprocessor_1.0.0} STREQUAL "" OR NOT ${scanner_plugin_found_incs_postprocessor_1.0.0} STREQUAL "")
    set ( reqd_lib_output "${reqd_lib_output}libscanner_postprocessor_1.0.0.so:\n" )
    if( NOT ${scanner_plugin_linked_libs_postprocessor_1.0.0} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  linked_libs: \n${scanner_plugin_linked_libs_postprocessor_1.0.0}")
    endif()
    if( NOT ${scanner_plugin_found_incs_postprocessor_1.0.0} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  found_incs: \n${scanner_plugin_found_incs_postprocessor_1.0.0}")
    endif()
endif()

if ( scanner_ok_flag_postprocessor_1.0.0 STREQUAL "" )
    add_gambit_library( scanner_postprocessor_1.0.0 VISIBLE OPTION SHARED SOURCES ${scanner_plugin_sources_postprocessor_1.0.0} HEADERS ${scanner_plugin_headers_postprocessor_1.0.0} )
    set_target_properties( scanner_postprocessor_1.0.0
                       PROPERTIES
                       INSTALL_RPATH "${scanner_plugin_rpath_postprocessor_1.0.0}"
                       COMPILE_FLAGS "${scanner_compile_flags_postprocessor_1.0.0}"
                       INCLUDE_DIRECTORIES "${scanner_plugin_includes_postprocessor_1.0.0}"
                       ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib"
                       LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib")
    target_link_libraries( scanner_postprocessor_1.0.0 ${scanner_plugin_lib_full_paths_postprocessor_1.0.0})
    set (SCANNERBIT_PLUGINS ${SCANNERBIT_PLUGINS} scanner_postprocessor_1.0.0)
else()
    set ( exclude_lib_output "${exclude_lib_output}libscanner_postprocessor_1.0.0.so:\n  plugins:\n    - postprocessor__t__scanner__v__1_0_0_\n  reason: ${scanner_ok_flag_postprocessor_1.0.0}\n\n" )
endif()

#################### libscanner_postprocessor_2.0.0.so ####################

set (scanner_ok_flag_postprocessor_2.0.0 "")

set (scanner_compile_flags_postprocessor_2.0.0 "${PLUGIN_COMPILE_FLAGS}")

set (scanner_plugin_libraries_postprocessor_2.0.0
)

set (scanner_plugin_lib_paths_postprocessor_2.0.0
)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    set (scanner_plugin_rpath_postprocessor_2.0.0
    )
else()
    set (scanner_plugin_rpath_postprocessor_2.0.0
    )
endif()

set (scanner_plugin_includes_postprocessor_2.0.0
                ${PLUGIN_INCLUDE_DIRECTORIES}
                ${CMAKE_CURRENT_SOURCE_DIR}/include/gambit/ScannerBit/scanners/postprocessor_2.0.0
)

set (scanner_plugin_linked_libs_postprocessor_2.0.0 "")

set (scanner_plugin_lib_full_paths_postprocessor_2.0.0
)

set (scanner_plugin_found_incs_postprocessor_2.0.0 "")


if( NOT ${scanner_plugin_linked_libs_postprocessor_2.0.0} STREQUAL "" OR NOT ${scanner_plugin_found_incs_postprocessor_2.0.0} STREQUAL "")
    set ( reqd_lib_output "${reqd_lib_output}libscanner_postprocessor_2.0.0.so:\n" )
    if( NOT ${scanner_plugin_linked_libs_postprocessor_2.0.0} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  linked_libs: \n${scanner_plugin_linked_libs_postprocessor_2.0.0}")
    endif()
    if( NOT ${scanner_plugin_found_incs_postprocessor_2.0.0} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  found_incs: \n${scanner_plugin_found_incs_postprocessor_2.0.0}")
    endif()
endif()

if ( scanner_ok_flag_postprocessor_2.0.0 STREQUAL "" )
    add_gambit_library( scanner_postprocessor_2.0.0 VISIBLE OPTION SHARED SOURCES ${scanner_plugin_sources_postprocessor_2.0.0} HEADERS ${scanner_plugin_headers_postprocessor_2.0.0} )
    set_target_properties( scanner_postprocessor_2.0.0
                       PROPERTIES
                       INSTALL_RPATH "${scanner_plugin_rpath_postprocessor_2.0.0}"
                       COMPILE_FLAGS "${scanner_compile_flags_postprocessor_2.0.0}"
                       INCLUDE_DIRECTORIES "${scanner_plugin_includes_postprocessor_2.0.0}"
                       ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib"
                       LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib")
    target_link_libraries( scanner_postprocessor_2.0.0 ${scanner_plugin_lib_full_paths_postprocessor_2.0.0})
    set (SCANNERBIT_PLUGINS ${SCANNERBIT_PLUGINS} scanner_postprocessor_2.0.0)
else()
    set ( exclude_lib_output "${exclude_lib_output}libscanner_postprocessor_2.0.0.so:\n  plugins:\n    - postprocessor__t__scanner__v__2_0_0_\n  reason: ${scanner_ok_flag_postprocessor_2.0.0}\n\n" )
endif()

#################### libscanner_simple.so ####################

set (scanner_ok_flag_simple "")

set (scanner_compile_flags_simple "${PLUGIN_COMPILE_FLAGS}")

set (scanner_plugin_libraries_simple
)

set (scanner_plugin_lib_paths_simple
)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    set (scanner_plugin_rpath_simple
    )
else()
    set (scanner_plugin_rpath_simple
    )
endif()

set (scanner_plugin_includes_simple
                ${PLUGIN_INCLUDE_DIRECTORIES}
                ${CMAKE_CURRENT_SOURCE_DIR}/include/gambit/ScannerBit/scanners/simple
)

set (scanner_plugin_linked_libs_simple "")

set (scanner_plugin_lib_full_paths_simple
)

set (scanner_plugin_found_incs_simple "")


if( NOT ${scanner_plugin_linked_libs_simple} STREQUAL "" OR NOT ${scanner_plugin_found_incs_simple} STREQUAL "")
    set ( reqd_lib_output "${reqd_lib_output}libscanner_simple.so:\n" )
    if( NOT ${scanner_plugin_linked_libs_simple} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  linked_libs: \n${scanner_plugin_linked_libs_simple}")
    endif()
    if( NOT ${scanner_plugin_found_incs_simple} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  found_incs: \n${scanner_plugin_found_incs_simple}")
    endif()
endif()

if ( scanner_ok_flag_simple STREQUAL "" )
    add_gambit_library( scanner_simple VISIBLE OPTION SHARED SOURCES ${scanner_plugin_sources_simple} HEADERS ${scanner_plugin_headers_simple} )
    set_target_properties( scanner_simple
                       PROPERTIES
                       INSTALL_RPATH "${scanner_plugin_rpath_simple}"
                       COMPILE_FLAGS "${scanner_compile_flags_simple}"
                       INCLUDE_DIRECTORIES "${scanner_plugin_includes_simple}"
                       ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib"
                       LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib")
    target_link_libraries( scanner_simple ${scanner_plugin_lib_full_paths_simple})
    set (SCANNERBIT_PLUGINS ${SCANNERBIT_PLUGINS} scanner_simple)
else()
    set ( exclude_lib_output "${exclude_lib_output}libscanner_simple.so:\n  plugins:\n    - grid__t__scanner__v__1_0_0_\n    - random__t__scanner__v__1_0_0_\n    - raster__t__scanner__v__1_0_0_\n    - square_grid__t__scanner__v__1_0_0_\n    - toy_mcmc__t__scanner__v__1_0_0_\n  reason: ${scanner_ok_flag_simple}\n\n" )
endif()

#################### libscanner_twalk.so ####################

set (scanner_ok_flag_twalk "")

set (scanner_compile_flags_twalk "${PLUGIN_COMPILE_FLAGS}")

set (scanner_plugin_libraries_twalk
)

set (scanner_plugin_lib_paths_twalk
)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    set (scanner_plugin_rpath_twalk
    )
else()
    set (scanner_plugin_rpath_twalk
    )
endif()

set (scanner_plugin_includes_twalk
                ${PLUGIN_INCLUDE_DIRECTORIES}
                ${CMAKE_CURRENT_SOURCE_DIR}/include/gambit/ScannerBit/scanners/twalk
)

set (scanner_plugin_linked_libs_twalk "")

set (scanner_plugin_lib_full_paths_twalk
)

set (scanner_plugin_found_incs_twalk "")


if( NOT ${scanner_plugin_linked_libs_twalk} STREQUAL "" OR NOT ${scanner_plugin_found_incs_twalk} STREQUAL "")
    set ( reqd_lib_output "${reqd_lib_output}libscanner_twalk.so:\n" )
    if( NOT ${scanner_plugin_linked_libs_twalk} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  linked_libs: \n${scanner_plugin_linked_libs_twalk}")
    endif()
    if( NOT ${scanner_plugin_found_incs_twalk} STREQUAL "" )
        set ( reqd_lib_output "${reqd_lib_output}  found_incs: \n${scanner_plugin_found_incs_twalk}")
    endif()
endif()

if ( scanner_ok_flag_twalk STREQUAL "" )
    add_gambit_library( scanner_twalk VISIBLE OPTION SHARED SOURCES ${scanner_plugin_sources_twalk} HEADERS ${scanner_plugin_headers_twalk} )
    set_target_properties( scanner_twalk
                       PROPERTIES
                       INSTALL_RPATH "${scanner_plugin_rpath_twalk}"
                       COMPILE_FLAGS "${scanner_compile_flags_twalk}"
                       INCLUDE_DIRECTORIES "${scanner_plugin_includes_twalk}"
                       ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib"
                       LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib")
    target_link_libraries( scanner_twalk ${scanner_plugin_lib_full_paths_twalk})
    set (SCANNERBIT_PLUGINS ${SCANNERBIT_PLUGINS} scanner_twalk)
else()
    set ( exclude_lib_output "${exclude_lib_output}libscanner_twalk.so:\n  plugins:\n    - twalk__t__scanner__v__1_0_1_\n  reason: ${scanner_ok_flag_twalk}\n\n" )
endif()

set(SCANNERBIT_PLUGINS ${SCANNERBIT_PLUGINS} PARENT_SCOPE)
file( WRITE ${PROJECT_SOURCE_DIR}/scratch/build_time/scanbit_excluded_libs.yaml "${exclude_lib_output}" )
file( WRITE ${PROJECT_SOURCE_DIR}/scratch/build_time/scanbit_linked_libs.yaml "${reqd_lib_output}" )

#################################################################################

foreach (plugin ${SCANNERBIT_PLUGINS})
    add_dependencies(ScannerBit ${plugin})
endforeach()

add_subdirectory(python)
