*_stdup_printf -> strdup for "single string only" formatting.
[metze/wireshark/wip.git] / capchild / CMakeLists.txt
1 # CMakeLists.txt
2
3 #
4 # Wireshark - Network traffic analyzer
5 # By Gerald Combs <gerald@wireshark.org>
6 # Copyright 1998 Gerald Combs
7 #
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License
10 # as published by the Free Software Foundation; either version 2
11 # of the License, or (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #
22
23
24 set(CAPCHILD_SRC
25         capture_ifinfo.c
26         capture_sync.c
27 )
28
29 set(CLEAN_FILES
30         ${CAPCHILD_SRC}
31 )
32
33 if (WERROR_COMMON_FLAGS)
34         set_source_files_properties(
35                 ${CLEAN_FILES}
36                 PROPERTIES
37                 COMPILE_FLAGS ${WERROR_COMMON_FLAGS}
38         )
39 endif()
40
41 file(GLOB CAPCHILD_HEADERS capture_session.h)
42
43 add_library(capchild STATIC
44         ${CAPCHILD_SRC}
45 )
46
47 set_target_properties(capchild PROPERTIES
48         LINK_FLAGS "${WS_LINK_FLAGS}"
49         FOLDER "Libs")
50
51 include( UseCheckAPI )
52 CHECKAPI(
53         NAME
54           capchild-base
55         SWITCHES
56           -g deprecated-gtk
57         SOURCES
58           ${CAPCHILD_SRC}
59 )
60 CHECKAPI(
61         NAME
62           capchild-todo
63         SWITCHES
64           -M -g deprecated-gtk-todo
65         SOURCES
66           ${CAPCHILD_SRC}
67 )