set(F WS_C_FLAG_${C})
set(${F} ${THIS_FLAG})
set(V WS_C_FLAG_VALID${C})
+ message(STATUS "Checking for flag: ${${F}}")
check_c_compiler_flag(${${F}} ${V})
if (${${V}})
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${${F}}")
set(F WS_C_FLAG_${C})
set(${F} ${THIS_FLAG})
set(V WS_C_FLAG_VALID${C})
+ message(STATUS "Checking for flag: ${${F}}")
check_c_compiler_flag(${${F}} ${V})
if (${${V}})
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${${F}}")
set(PCAP_REQUIRED)
set(M_REQUIRED)
set(PythonInterp_FIND_VERSION 2)
+set(Python_ADDITIONAL_VERSIONS 3)
set(PACKAGELIST ${PACKAGELIST} HtmlViewer)
add_subdirectory( codecs )
add_subdirectory( epan )
add_subdirectory( tools/lemon )
+add_subdirectory( ui )
add_subdirectory( wiretap )
add_subdirectory( wsutil )
add_subdirectory( echld )
endif()
-if((BUILD_wireshark AND GTK_FOUND) OR (BUILD_qtshark AND QT_FOUND))
- add_subdirectory( ui )
-endif()
-
if(BUILD_wireshark AND GTK_FOUND)
add_subdirectory( ui/gtk )
endif()
set(mergecap_LIBS
wiretap
${ZLIB_LIBRARIES}
+ ${CMAKE_DL_LIBS}
)
set(mergecap_FILES
mergecap.c
set(reordercap_LIBS
wiretap
${ZLIB_LIBRARIES}
+ ${CMAKE_DL_LIBS}
)
set(reordercap_FILES
reordercap.c
wsutil
${ZLIB_LIBRARIES}
${GCRYPT_LIBRARIES}
+ ${CMAKE_DL_LIBS}
)
set(capinfos_FILES
capinfos.c
set(editcap_LIBS
wiretap
${ZLIB_LIBRARIES}
+ ${CMAKE_DL_LIBS}
)
set(editcap_FILES
editcap.c
- epan/crypt/md5.c
${WTAP_PLUGIN_SOURCES}
)
add_executable(editcap ${editcap_FILES})