Revert
[metze/wireshark/wip.git] / ui / CMakeLists.txt
1 # CMakeLists.txt
2 #
3 # $Id$
4 #
5 # Wireshark - Network traffic analyzer
6 # By Gerald Combs <gerald@wireshark.org>
7 # Copyright 1998 Gerald Combs
8 #
9 # This program is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License
11 # as published by the Free Software Foundation; either version 2
12 # of the License, or (at your option) any later version.
13 #
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #
23
24
25 set(COMMON_UI_SRC
26         alert_box.c
27         export_object.c
28         export_object_dicom.c
29         export_object_http.c
30         export_object_smb.c
31         help_url.c
32         iface_lists.c
33         preference_utils.c
34         profile.c
35         recent.c
36         ssl_key_export.c
37         software_update.c
38         text_import.c
39         time_shift.c
40         util.c
41 )
42
43 set(DIRTY_UI_SRC)
44
45 add_lex_files(DIRTY_UI_SRC
46         text_import_scanner.l
47 )
48
49 set(CLEAN_FILES
50         ${COMMON_UI_SRC}
51 )
52
53 if (WERROR)
54         set_source_files_properties(
55                 ${CLEAN_FILES}
56                 PROPERTIES
57                 COMPILE_FLAGS -Werror
58         )
59 endif()
60
61
62 add_library(ui STATIC
63         ${COMMON_UI_SRC}
64         ${DIRTY_UI_SRC}
65 )
66
67 set_target_properties(ui PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")