
set (DETECTION_INCLUDES
    detect.h
    detection_engine.h
    detection_options.h
    detection_util.h
    detect_trace.h
    ips_context.h
    ips_context_chain.h
    ips_context_data.h
    regex_offload.h
    rule_option_types.h
    rules.h
    signature.h
    treenodes.h
)

add_library (detection OBJECT
    ${DETECTION_INCLUDES}
    context_switcher.cc
    context_switcher.h
    detect.cc
    detection_engine.cc
    detection_module.cc
    detection_module.h
    detection_options.cc
    detection_options.h
    detection_util.cc
    detect_trace.cc
    fp_config.cc
    fp_config.h
    fp_create.cc
    fp_create.h
    fp_detect.cc
    fp_detect.h
    fp_utils.cc
    fp_utils.h
    ips_context.cc
    ips_context_chain.cc
    ips_context_data.cc
    pattern_match_data.h
    pcrm.cc
    pcrm.h
    regex_offload.cc
    rtn_checks.cc
    rtn_checks.h
    rules.cc
    service_map.cc
    service_map.h
    sfrim.cc
    sfrim.h
    signature.cc
    treenodes.cc
    tag.cc
    tag.h
)

install(FILES ${DETECTION_INCLUDES}
    DESTINATION "${INCLUDE_INSTALL_PATH}/detection"
)
