"Fossies" - the Fresh Open Source Software Archive

Member "snort3_extra-3.0.3-1/src/inspectors/null_trace_logger/CMakeLists.txt" (23 Sep 2020, 872 Bytes) of package /linux/misc/snort3_extra-3.0.3-1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 cmake_minimum_required ( VERSION 3.4.3 )
    2 project ( null_trace_logger CXX )
    3 
    4 set ( CMAKE_CXX_STANDARD 14 )
    5 set ( CMAKE_CXX_STANDARD_REQUIRED ON )
    6 set ( CMAKE_CXX_EXTENSIONS OFF )
    7 
    8 if ( APPLE )
    9     set ( CMAKE_MACOSX_RPATH OFF )
   10 endif ( APPLE )
   11 
   12 include ( FindPkgConfig )
   13 pkg_search_module ( SNORT3 REQUIRED snort>=3 )
   14 
   15 add_library (
   16     null_trace_logger MODULE
   17     null_trace_logger.cc
   18 )
   19 
   20 if ( APPLE )
   21     set_target_properties (
   22         null_trace_logger
   23             PROPERTIES
   24                 LINK_FLAGS "-undefined dynamic_lookup"
   25     )
   26 endif ( APPLE )
   27 
   28 set_target_properties (
   29     null_trace_logger
   30         PROPERTIES
   31             PREFIX ""
   32 )
   33 
   34 target_include_directories (
   35     null_trace_logger PUBLIC
   36     ${SNORT3_INCLUDE_DIRS}
   37 )
   38 
   39 install (
   40     TARGETS null_trace_logger
   41     LIBRARY
   42         DESTINATION "${CMAKE_INSTALL_LIBDIR}/${CMAKE_PROJECT_NAME}/snort_plugins"
   43 )
   44