diff options
author | Graham Bloice <graham.bloice@trihedral.com> | 2016-03-11 19:51:39 +0000 |
---|---|---|
committer | Graham Bloice <graham.bloice@trihedral.com> | 2016-05-02 12:01:24 +0000 |
commit | 2e23b506c766d98966ed213c760b2aa6232ba1fe (patch) | |
tree | e15eec1049e10419d869dea459730791ec2bc128 /caputils/CMakeLists.txt | |
parent | 231f6b5035e4f001eca22029b58cf4c498d624bd (diff) |
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 <buildbot-no-reply@wireshark.org>
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
Diffstat (limited to 'caputils/CMakeLists.txt')
-rw-r--r-- | caputils/CMakeLists.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/caputils/CMakeLists.txt b/caputils/CMakeLists.txt index 4f6a9ef130..21722c434e 100644 --- a/caputils/CMakeLists.txt +++ b/caputils/CMakeLists.txt @@ -68,3 +68,20 @@ add_library(caputils STATIC set_target_properties(caputils PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}" FOLDER "Libs") + +CHECKAPI( + NAME + caputils-base + SWITCHES + -g deprecated-gtk + SOURCES + ${CAPUTILS_SRC} +) +CHECKAPI( + NAME + caputils-todo + SWITCHES + -M -g deprecated-gtk-todo + SOURCES + ${CAPUTILS_SRC} +) |