File: ZeekSubdir.cmake

package info (click to toggle)
binpac 0.59.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,168 kB
  • sloc: cpp: 10,806; yacc: 1,011; lex: 383; sh: 193; makefile: 35
file content (9 lines) | stat: -rw-r--r-- 448 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9

# Creates a target for a library of objects file in a subdirectory,
# and adds to the global bro_SUBDIR_LIBS.
function(bro_add_subdir_library name)
    add_library("bro_${name}" OBJECT ${ARGN})
    set(bro_SUBDIR_LIBS "$<TARGET_OBJECTS:bro_${name}>" ${bro_SUBDIR_LIBS} CACHE INTERNAL "subdir libraries")
    set(bro_SUBDIR_DEPS "bro_${name}" ${bro_SUBDIR_DEPS} CACHE INTERNAL "subdir dependencies")
    add_clang_tidy_files(${ARGN})
endfunction()