2023-04-21 09:41:31 +08:00
|
|
|
include_directories(/opt/MESA/include/MESA/)
|
2023-02-15 11:53:46 +08:00
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/include)
|
2022-11-17 05:05:35 +08:00
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/src/inc_internal)
|
|
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/deps)
|
2022-11-25 16:32:29 +08:00
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/scanner)
|
2023-08-10 16:10:50 +08:00
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/scanner/expr_matcher)
|
|
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/scanner/expr_matcher/adapter_hs)
|
|
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/scanner/expr_matcher/adapter_rs)
|
2023-03-01 09:32:36 +08:00
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/scanner/ip_matcher)
|
2023-10-10 11:23:44 +00:00
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/scanner/ipport_matcher)
|
2023-07-07 07:38:42 +00:00
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/scanner/bool_matcher)
|
2022-11-17 05:05:35 +08:00
|
|
|
|
|
|
|
|
add_executable(rcu_hash_gtest rcu_hash_gtest.cpp)
|
2022-11-25 16:32:29 +08:00
|
|
|
target_link_libraries(rcu_hash_gtest maat_frame_static gtest_static)
|
|
|
|
|
|
2024-04-03 16:47:30 +08:00
|
|
|
add_executable(maat_input_mode_gtest maat_input_mode_gtest.cpp test_utils.cpp)
|
2022-12-05 23:21:18 +08:00
|
|
|
target_link_libraries(maat_input_mode_gtest maat_frame_static gtest_static)
|
|
|
|
|
|
2024-03-27 11:19:39 +00:00
|
|
|
add_executable(maat_framework_gtest maat_framework_gtest.cpp test_utils.cpp)
|
2022-11-25 16:32:29 +08:00
|
|
|
target_link_libraries(maat_framework_gtest maat_frame_static gtest_static)
|
|
|
|
|
|
2024-03-27 11:19:39 +00:00
|
|
|
add_executable(maat_framework_perf_gtest maat_framework_perf_gtest.cpp test_utils.cpp)
|
2023-03-30 20:49:59 +08:00
|
|
|
target_link_libraries(maat_framework_perf_gtest maat_frame_static gtest_static)
|
|
|
|
|
|
2023-08-10 16:10:50 +08:00
|
|
|
add_executable(expr_matcher_gtest expr_matcher_gtest.cpp)
|
|
|
|
|
target_link_libraries(expr_matcher_gtest maat_frame_static gtest_static)
|
2023-02-09 22:13:15 +08:00
|
|
|
|
2023-05-17 17:03:50 +08:00
|
|
|
add_executable(ip_matcher_gtest ip_matcher_gtest.cpp)
|
|
|
|
|
target_link_libraries(ip_matcher_gtest maat_frame_static gtest_static)
|
2023-10-10 11:23:44 +00:00
|
|
|
|
|
|
|
|
add_executable(ipport_matcher_gtest ipport_matcher_gtest.cpp)
|
|
|
|
|
target_link_libraries(ipport_matcher_gtest maat_frame_static gtest_static)
|
2023-05-17 17:03:50 +08:00
|
|
|
|
2023-07-07 07:38:42 +00:00
|
|
|
add_executable(bool_matcher_gtest bool_matcher_gtest.cpp)
|
|
|
|
|
target_link_libraries(bool_matcher_gtest maat_frame_static gtest_static)
|
|
|
|
|
|
2023-02-24 17:29:38 +08:00
|
|
|
add_executable(maat_ex_data_gtest maat_ex_data_gtest.cpp)
|
|
|
|
|
target_link_libraries(maat_ex_data_gtest maat_frame_static gtest_static)
|
|
|
|
|
|
2024-03-29 08:37:40 +00:00
|
|
|
add_subdirectory(group_nesting)
|
2023-10-07 09:48:26 +00:00
|
|
|
add_subdirectory(ipport_plugin)
|
2023-08-10 16:10:50 +08:00
|
|
|
add_subdirectory(benchmark)
|
2023-05-15 07:24:36 +00:00
|
|
|
|
2024-03-27 11:19:39 +00:00
|
|
|
configure_file(table_info.conf table_info.conf COPYONLY)
|
|
|
|
|
configure_file(tsg_table_info.conf tsg_table_info.conf COPYONLY)
|
|
|
|
|
configure_file(file_test_tableinfo.conf file_test_tableinfo.conf COPYONLY)
|
|
|
|
|
configure_file(expr_matcher.conf expr_matcher.conf COPYONLY)
|
|
|
|
|
configure_file(maat_json.json maat_json.json COPYONLY)
|
|
|
|
|
|
2023-03-17 17:28:52 +08:00
|
|
|
file(COPY ntcrule DESTINATION ./)
|
2023-05-23 03:23:39 +00:00
|
|
|
file(COPY tsgrule DESTINATION ./)
|
2023-03-30 15:22:33 +08:00
|
|
|
file(COPY testdata DESTINATION ./)
|
2023-04-24 02:14:26 +00:00
|
|
|
file(COPY test_streamfiles DESTINATION ./)
|
2023-05-04 17:10:19 +08:00
|
|
|
file(COPY json_update DESTINATION ./)
|
2024-03-29 08:37:40 +00:00
|
|
|
file(COPY group_nesting DESTINATION ./)
|
2023-10-07 09:48:26 +00:00
|
|
|
file(COPY ipport_plugin DESTINATION ./)
|
2023-08-10 16:10:50 +08:00
|
|
|
file(COPY benchmark DESTINATION ./)
|
2023-04-24 02:14:26 +00:00
|
|
|
|
|
|
|
|
include(GoogleTest)
|
2023-08-09 19:22:09 +08:00
|
|
|
gtest_discover_tests(maat_framework_gtest)
|