Use the same rules as cmake submodule to reformat Zeek

This commit is contained in:
Tim Wojtulewicz 2023-05-08 10:19:26 -07:00
parent fd72d81bad
commit 84e3f414a7
125 changed files with 1423 additions and 1670 deletions

View file

@ -1,9 +1,8 @@
project(Zeek-Plugin-Demo-Foo)
cmake_minimum_required(VERSION 3.5)
if ( NOT ZEEK_DIST )
if (NOT ZEEK_DIST)
message(FATAL_ERROR "ZEEK_DIST not set")
endif ()

View file

@ -20,12 +20,12 @@ include_directories(BEFORE ${PYTHON_INCLUDE_DIR})
zeek_plugin_begin(Zeek PyLib)
file(GLOB cc_files RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "plugin/src/*.cc")
foreach(file ${cc_files})
foreach (file ${cc_files})
zeek_plugin_cc(${file})
endforeach ()
file(GLOB bif_files RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "plugin/src/*.bif")
foreach(file ${bif_files})
foreach (file ${bif_files})
zeek_plugin_bif(${file})
endforeach ()

View file

@ -1,9 +1,8 @@
project(Zeek-Plugin-Demo-Version)
cmake_minimum_required(VERSION 3.15)
if ( NOT ZEEK_DIST )
if (NOT ZEEK_DIST)
message(FATAL_ERROR "ZEEK_DIST not set")
endif ()