Add routines to set the personal file directory paths (personal
[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         persfilepath_opt.c
36         preference_utils.c
37         profile.c
38         recent.c
39         ssl_key_export.c
40         software_update.c
41         tap-megaco-common.c
42         tap-rtp-common.c
43         tap-sctp-analysis.c
44         tap-sequence-analysis.c
45         tap-tcp-stream.c
46         text_import.c
47         time_shift.c
48         util.c
49 )
50
51 set(DIRTY_UI_SRC)
52
53 add_lex_files(DIRTY_UI_SRC
54         text_import_scanner.l
55 )
56
57 set(CLEAN_FILES
58         ${COMMON_UI_SRC}
59 )
60
61 if (WERROR)
62         set_source_files_properties(
63                 ${CLEAN_FILES}
64                 PROPERTIES
65                 COMPILE_FLAGS -Werror
66         )
67 endif()
68
69
70 add_library(ui STATIC
71         ${COMMON_UI_SRC}
72         ${DIRTY_UI_SRC}
73 )
74
75 set_target_properties(ui PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
76 set_target_properties(ui PROPERTIES FOLDER "UI")