From 2e23b506c766d98966ed213c760b2aa6232ba1fe Mon Sep 17 00:00:00 2001 From: Graham Bloice Date: Fri, 11 Mar 2016 19:51:39 +0000 Subject: Add checkAPI calls to CMake. This generates a top level target, checkAPI, that is excluded from the ALL build target, so must be run separately. On Windows using a Visual Studio generator, call msbuild /p:Configuration=RelWithDebInfo checkAPI.vcxproj Change-Id: I44a57c564dcfc75499463b942436f4b920a82478 Reviewed-on: https://code.wireshark.org/review/14873 Tested-by: Petri Dish Buildbot Reviewed-by: Graham Bloice --- plugins/stats_tree/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'plugins/stats_tree') diff --git a/plugins/stats_tree/CMakeLists.txt b/plugins/stats_tree/CMakeLists.txt index e0d1dbcc28..60283123fd 100644 --- a/plugins/stats_tree/CMakeLists.txt +++ b/plugins/stats_tree/CMakeLists.txt @@ -48,3 +48,14 @@ install(TARGETS stats_tree RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/${CPACK_PACKAGE_NAME}/plugins/${CPACK_PACKAGE_VERSION} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/${CPACK_PACKAGE_NAME}/plugins/${CPACK_PACKAGE_VERSION} ) + +file(GLOB PLUGIN_HEADERS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*.h") +CHECKAPI( + NAME + stats_tree + SWITCHES + -g abort -g termoutput -build + SOURCES + ${CLEAN_FILES} + ${PLUGIN_HEADERS} +) -- cgit v1.2.1