Introduce UseMakeTapReg.cmake
authorkrj <krj@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 9 Oct 2009 16:54:30 +0000 (16:54 +0000)
committerkrj <krj@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 9 Oct 2009 16:54:30 +0000 (16:54 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30436 f5534014-38df-0310-8fa8-9805f1628bb7

CMakeLists.txt
cmake/modules/UseMakeTapReg.cmake [new file with mode: 0644]

index 87e7de503141a31996d65a05ac22b177d389790b..67337786bb87aeba24a9d567a00dfe0afc3f4601 100644 (file)
@@ -29,6 +29,7 @@ cmake_minimum_required(VERSION 2.6)
 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
 INCLUDE(UseLemon)
 INCLUDE(UseMakeDissectorReg)
+INCLUDE(UseMakeTapReg)
 
 # Under linux the release mode (CMAKE_BUILD_TYPE=release) defines NDEBUG
 
diff --git a/cmake/modules/UseMakeTapReg.cmake b/cmake/modules/UseMakeTapReg.cmake
new file mode 100644 (file)
index 0000000..488beac
--- /dev/null
@@ -0,0 +1,19 @@
+#
+# $Id$
+#
+MACRO(REGISTER_TAP_FILES _outputfile )
+       set( _sources ${ARGN} )
+    ADD_CUSTOM_COMMAND(
+        OUTPUT
+          ${_outputfile}
+        COMMAND ${SHELL}
+          ${CMAKE_SOURCE_DIR}/tools/make-tapreg-dotc
+          ${_outputfile}
+          ${CMAKE_CURRENT_SOURCE_DIR}
+          ${_sources}
+        DEPENDS
+          ${CMAKE_SOURCE_DIR}/tools/make-tapreg-dotc
+          ${_sources}
+    )
+ENDMACRO(REGISTER_TAP_FILES)
+