"Fossies" - the Fresh Open Source Software Archive

Member "snort3_extra-3.1.53.0/src/search_engines/lowmem/CMakeLists.txt" (20 Dec 2022, 791 Bytes) of package /linux/misc/snort3_extra-3.1.53.0.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 ( lowmem 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     lowmem MODULE
   17     lowmem.cc
   18     sfksearch.cc
   19     sfksearch.h
   20     trie_api.cc
   21 )
   22 
   23 if ( APPLE )
   24     set_target_properties (
   25         lowmem
   26         PROPERTIES
   27             LINK_FLAGS "-undefined dynamic_lookup"
   28     )
   29 endif ( APPLE )
   30 
   31 set_target_properties (
   32     lowmem
   33     PROPERTIES
   34         PREFIX ""
   35 )
   36 
   37 target_include_directories (
   38     lowmem PUBLIC
   39     ${SNORT3_INCLUDE_DIRS}
   40 )
   41 
   42 install (
   43     TARGETS lowmem
   44     LIBRARY
   45         DESTINATION "${SEARCH_ENGINE_INSTALL_PATH}"
   46 )