]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
updated cmake foo
authorRuss Combs <rucombs@cisco.com>
Mon, 30 Jun 2014 13:49:37 +0000 (09:49 -0400)
committerRuss Combs <rucombs@cisco.com>
Mon, 30 Jun 2014 13:49:37 +0000 (09:49 -0400)
13 files changed:
src/codecs/ip/CMakeLists.txt
src/codecs/link/CMakeLists.txt
src/codecs/misc/CMakeLists.txt
src/codecs/root/CMakeLists.txt
src/network_inspectors/arp_spoof/CMakeLists.txt
src/network_inspectors/binder/CMakeLists.txt [new file with mode: 0644]
src/network_inspectors/perf_monitor/CMakeLists.txt
src/network_inspectors/port_scan/CMakeLists.txt
src/service_inspectors/back_orifice/CMakeLists.txt
src/service_inspectors/ftp_telnet/CMakeLists.txt
src/service_inspectors/nhttp_inspect/CMakeLists.txt
src/service_inspectors/rpc_decode/CMakeLists.txt
src/service_inspectors/wizard/CMakeLists.txt [new file with mode: 0644]

index 116c1debb30874ccd3bb71191365b48d7dde49c7..b9306bb9d265af83198ef72c878f6d662af12790 100644 (file)
@@ -25,7 +25,7 @@ if( STATIC_CODECS )
         cd_swipe.cc
     )
 
-else()
+else(STATIC_CODECS)
     add_shared_library(cd_ah codecs cd_ah.cc cd_ah_module.h cd_ah_module.cc)
     add_shared_library(cd_dstopts codecs cd_dstopts.cc ipv6_util.h ipv6_util.cc)
     add_shared_library(cd_frag codecs cd_frag.cc ipv6_util.h ipv6_util.cc)
@@ -39,7 +39,7 @@ else()
     add_shared_library(cd_sun_nd codecs cd_sun_nd.cc)
     add_shared_library(cd_swipe codecs cd_swipe.cc)
 
-endif()
+endif(STATIC_CODECS)
 
 
 add_library( ip_codecs STATIC
index ecd03d4924fe3159ecf4a0d6d1be3220f249b868..730c9533edcc8c55685f04e3b096d93470d91965 100644 (file)
@@ -30,9 +30,9 @@ if( STATIC_CODECS )
             cd_eapol_module.h
             cd_eapol_module.cc
         )
-    endif()
+    endif(ENABLE_NON_ETHER_DECODERS)
 
-else()
+else(STATIC_CODECS)
     add_shared_library(cd_erspan2 codecs cd_erspan2.cc cd_erspan2_module.h cd_erspan2_module.cc)
     add_shared_library(cd_erspan3 codecs cd_erspan3.cc cd_erspan3_module.h cd_erspan3_module.cc)
     add_shared_library(cd_ethloopback codecs cd_ethloopback.cc)
@@ -44,9 +44,9 @@ else()
 
     if(ENABLE_NON_ETHER_DECODERS)
         add_shared_library(cd_eapol codecs cd_eapol.cc cd_eapol_module.h cd_eapol_module.cc)
-    endif()
+    endif(ENABLE_NON_ETHER_DECODERS)
 
-endif()
+endif(STATIC_CODECS)
 
 
 add_library( link_codecs STATIC
index 780f4d83ef985590d22f14626a407fdf56ff5372..b61902a149859e3db8420211152afd5bc4c03402 100644 (file)
@@ -8,11 +8,11 @@ if(STATIC_CODECS)
         cd_teredo.cc
     )
 
-else()
+else(STATIC_CODECS)
     add_shared_library(cd_gtp codecs cd_gtp.cc cd_gtp_module.h cd_gtp_module.cc)
     add_shared_library(cd_teredo codecs cd_teredo.cc)
 
-endif()
+endif(STATIC_CODECS)
 
 add_library( misc_codecs STATIC
     cd_default.cc
index c036327003cb6f1df8af8f97f3fb5d009363de5e..1c9936c6066cb5c907d99c9944e7c041eb44de81 100644 (file)
@@ -25,13 +25,13 @@ if (STATIC_CODECS)
             )
     endif (ENABLE_NON_ETHER_DECODERS)
 
-else()
+else(STATIC_CODECS)
 
     if (ENABLE_NON_ETHER_DECODERS)
         add_shared_library(cd_wlan codecs cd_wlan.cc cd_wlan_module.h cd_wlan_module.cc)
         add_shared_library(cd_linux_sll codecs cd_linux_sll.cc)
-    endif()
-endif()
+    endif(ENABLE_NON_ETHER_DECODERS)
+endif(STATIC_CODECS)
 
 
 add_library(root_codecs STATIC
index 8c1b803b11290672e13265c8b760c77243c98764..8ccb338b5de970236497cd0ccf6084b478ef1e10 100644 (file)
@@ -10,7 +10,7 @@ if (STATIC_INSPECTORS)
         ${FILE_LIST}
     )
 
-else ()
+else (STATIC_INSPECTORS)
     add_shared_library(arpspoof inspectors ${FILE_LIST})
     
-endif ()
\ No newline at end of file
+endif (STATIC_INSPECTORS)
diff --git a/src/network_inspectors/binder/CMakeLists.txt b/src/network_inspectors/binder/CMakeLists.txt
new file mode 100644 (file)
index 0000000..2f758de
--- /dev/null
@@ -0,0 +1,15 @@
+
+set(FILE_LIST
+    binder.cc
+    binder.h 
+    bind_module.cc
+    bind_module.h
+)
+
+#if (STATIC_INSPECTORS)
+    add_library(binder STATIC ${FILE_LIST})
+
+#else (STATIC_INSPECTORS)
+#    add_shared_library(binder inspectors ${FILE_LIST})
+#    
+#endif (STATIC_INSPECTORS)
index 0610cc922fe8a4835fd096461656364a653db698..5a7071ad4eac91d12171f47d175237f6910c90b1 100644 (file)
@@ -6,7 +6,7 @@ if( BUILD_PROCPIDSTATS )
         sfprocpidstats.h
     )
 
-endif()
+endif(BUILD_PROCPIDSTATS)
 
 
 add_library ( perf_monitor STATIC
index fca8af667d4a25343837008c4aef75091a853ff6..3bb93e4273475e9df0cf7a4f0f9dc72391823fea 100644 (file)
@@ -21,7 +21,7 @@ if (STATIC_INSPECTORS)
     )
 
 
-else ()
+else (STATIC_INSPECTORS)
     add_shared_library(port_scan inspectors "${FILE_LIST}")
 
 endif (STATIC_INSPECTORS)
index a3286964b5ec4643b3bb0109b5f5913152dd1ef3..1f657bf0b0d802298cae302d46ad55f87cbd39df 100644 (file)
@@ -6,7 +6,7 @@ set( FILE_LIST
 if (STATIC_INSPECTORS)
     add_library( back_orifice STATIC ${FILE_LIST})
 
-else ()
+else (STATIC_INSPECTORS)
     add_shared_library(back_orifice inspectors ${FILE_LIST})
 
-endif ()
+endif (STATIC_INSPECTORS)
index 885a6a9d1c7c72cc945aef5a1ff1a4c40fb8d5ff..fbe13eee044c0c4fb0a120563aa5759807aebf57 100644 (file)
@@ -39,16 +39,12 @@ set (FILE_LIST
     telnet_module.h
 )
 
-
 if (STATIC_INSPECTORS)
     add_library(ftp_telnet STATIC ${FILE_LIST})
-    target_link_libraries(ftp_telnet
-        utils
-    )
+    target_link_libraries(ftp_telnet utils)
 
-else ()
+else (STATIC_INSPECTORS)
    add_shared_library(ftp_telnet inspectors ${FILE_LIST})
 
-endif ()
-
+endif (STATIC_INSPECTORS)
 
index a196af48c9f367d4c5d6b3fdfc6c1e45ca7e2165..b8b412420a1a7998e2ee3e71f6937d4c4967c5a9 100644 (file)
@@ -40,8 +40,9 @@ set (FILE_LIST
     nhttp_stream_splitter.h
 )
 
-#if (STATIC_INSPECTORS)
+if (STATIC_INSPECTORS)
     add_library(nhttp_inspect STATIC ${FILE_LIST})
-#else()
-#    add_shared_library(nhttp_inspect inspectors ${FILE_LIST})
-#endif()
+else(STATIC_INSPECTORS)
+    add_shared_library(nhttp_inspect inspectors ${FILE_LIST})
+endif(STATIC_INSPECTORS)
+
index 56c000c506b56adc65fbd29830f9ae86ccd00567..f1cac7172f735da4808802494edf6f68f4d10da0 100644 (file)
@@ -8,8 +8,8 @@ set( FILE_LIST
 if (STATIC_INSPECTORS)
     add_library( rpc_decode STATIC ${FILE_LIST})
 
-else ()
+else (STATIC_INSPECTORS)
     add_shared_library(rpc_decode inspectors ${FILE_LIST})
 
-endif ()
+endif (STATIC_INSPECTORS)
 
diff --git a/src/service_inspectors/wizard/CMakeLists.txt b/src/service_inspectors/wizard/CMakeLists.txt
new file mode 100644 (file)
index 0000000..f7c8eb0
--- /dev/null
@@ -0,0 +1,16 @@
+
+set(FILE_LIST
+    wizard.cc
+    wizard.h
+    wiz_module.cc
+    wiz_module.h
+)
+
+#if (STATIC_INSPECTORS)
+    add_library(wizard STATIC ${FILE_LIST})
+
+#else (STATIC_INSPECTORS)
+#    add_shared_library(wizard inspectors ${FILE_LIST})
+#    
+#endif (STATIC_INSPECTORS)
+