Revert previous commit of Irene, which doesn't work (yet).
[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         follow.c
32         help_url.c
33         packet_list_utils.c
34         iface_lists.c
35         preference_utils.c
36         profile.c
37         recent.c
38         ssl_key_export.c
39         software_update.c
40         tap-megaco-common.c
41         tap-rtp-common.c
42         tap-tcp-stream.c
43         text_import.c
44         time_shift.c
45         util.c
46 )
47
48 set(DIRTY_UI_SRC)
49
50 add_lex_files(DIRTY_UI_SRC
51         text_import_scanner.l
52 )
53
54 set(CLEAN_FILES
55         ${COMMON_UI_SRC}
56 )
57
58 if (WERROR)
59         set_source_files_properties(
60                 ${CLEAN_FILES}
61                 PROPERTIES
62                 COMPILE_FLAGS -Werror
63         )
64 endif()
65
66
67 add_library(ui STATIC
68         ${COMMON_UI_SRC}
69         ${DIRTY_UI_SRC}
70 )
71
72 set_target_properties(ui PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
73 set_target_properties(ui PROPERTIES FOLDER "UI")