File: ZeekSubdir.cmake

package info (click to toggle)
capstats 0.31-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 488 kB
  • sloc: cpp: 498; sh: 165; makefile: 38
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()