Added Apple Cocoa library to processes dumping OSX version.
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 23 Sep 2009 19:52:45 +0000 (19:52 +0000)
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 23 Sep 2009 19:52:45 +0000 (19:52 +0000)
Added Apple CoreServices to wireshark.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30106 f5534014-38df-0310-8fa8-9805f1628bb7

CMakeLists.txt

index 5895e948153168d790d712e919d401b249cef5cc..08223e219a299ab2ec48857c6430175c78d8e9cf 100644 (file)
@@ -346,6 +346,8 @@ endif()
 if(APPLE)
 #TODO verify that APPLE implies HAVE_OS_X_FRAMEWORKS
        set(HAVE_OS_X_FRAMEWORKS 1)
+       FIND_LIBRARY (APPLE_CORE_SERVICES_LIBRARY CoreServices)
+       FIND_LIBRARY (APPLE_COCOA_LIBRARY Cocoa)
 endif()
 
 if(WIN32)
@@ -558,6 +560,8 @@ if(BUILD_wireshark)
                codecs
                ${PORTAUDIO_LIBRARIES}
                ${LIBEPAN_LIBS}
+               ${APPLE_CORE_SERVICES_LIBRARY}
+               ${APPLE_COCOA_LIBRARY}
        )
        set(wireshark_FILES
                airpcap_loader.c
@@ -585,6 +589,7 @@ endif()
 if(BUILD_tshark)
        set(tshark_LIBS
                ${LIBEPAN_LIBS}
+               ${APPLE_COCOA_LIBRARY}
        )
        set(tshark_FILES
                capture_opts.c
@@ -603,6 +608,7 @@ endif()
 if(BUILD_rawshark)
        set(rawshark_LIBS
                ${LIBEPAN_LIBS}
+               ${APPLE_COCOA_LIBRARY}
        )
        set(rawshark_FILES
                ${WIRESHARK_COMMON_SRC}
@@ -689,6 +695,7 @@ if(BUILD_capinfos)
                wsutil
                ${GLIB2_LIBRARIES}
                ${Z_LIBRARIES}
+               ${APPLE_COCOA_LIBRARY}
        )
        set(capinfos_FILES
                capinfos.c
@@ -731,7 +738,7 @@ if(BUILD_dumpcap)
                ${GCRYPT_LIBRARIES}
                ${GNUTLS_LIBRARIES}
                ${Z_LIBRARIES}
-
+               ${APPLE_COCOA_LIBRARY}
        )
        set(dumpcap_FILES
                svnversion.h