Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/topic/awelzel/zeek-add-plugin-in…
Browse files Browse the repository at this point in the history
…clude-dirs'

* origin/topic/awelzel/zeek-add-plugin-include-dirs:
  zeek_add_plugin: Fix INCLUDE_DIRS
  • Loading branch information
awelzel committed Nov 22, 2023
2 parents 98799bb + 6d7a020 commit e16c48f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ZeekPluginDynamic.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ function (zeek_add_dynamic_plugin ns name)
zeek_next_pac_block(at_end pacInputs pacRemainder ${pacRemainder})
endwhile ()

# Add user-defined extra include directories.
if (FN_ARGS_INCLUDE_DIRS)
target_include_directories(${target_name} PRIVATE ${FN_ARGS_INCLUDE_DIRS})
endif ()

# Add user-defined extra dependencies.
if (FN_ARGS_DEPENDENCIES)
target_link_libraries(${target_name} PUBLIC ${FN_ARGS_DEPENDENCIES})
Expand Down
5 changes: 5 additions & 0 deletions ZeekPluginStatic.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ function (zeek_add_static_plugin ns name)
target_include_directories(${target_name} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src)
endif ()

# Add user-defined extra include directories.
if (FN_ARGS_INCLUDE_DIRS)
target_include_directories(${target_name} PRIVATE ${FN_ARGS_INCLUDE_DIRS})
endif ()

# Add extra dependencies.
if (FN_ARGS_DEPENDENCIES)
target_link_libraries(${target_name} PUBLIC ${FN_ARGS_DEPENDENCIES})
Expand Down

0 comments on commit e16c48f

Please sign in to comment.