"Fossies" - the Fresh Open Source Software Archive

Member "snort3_extra-3.0.3-1/src/so_rules/sid_18758/CMakeLists.txt" (23 Sep 2020, 804 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 ( sid_18758 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     sid_18758 MODULE
   17     sid_18758.cc
   18     sid_18758.h
   19 )
   20 
   21 if ( APPLE )
   22     set_target_properties (
   23         sid_18758
   24         PROPERTIES
   25             LINK_FLAGS "-undefined dynamic_lookup"
   26     )
   27 endif ( APPLE )
   28 
   29 set_target_properties (
   30     sid_18758
   31     PROPERTIES
   32         PREFIX ""
   33 )
   34 
   35 target_include_directories (
   36     sid_18758 PUBLIC
   37     ${SNORT3_INCLUDE_DIRS}
   38 )
   39 
   40 install (
   41     TARGETS sid_18758
   42     LIBRARY
   43         DESTINATION "${CMAKE_INSTALL_LIBDIR}/${CMAKE_PROJECT_NAME}/so_rules"
   44 )