aboutsummaryrefslogtreecommitdiffstats
path: root/README.cmake
blob: 8ec0045441d03cf16bf6ec1b1b4f4edd38a6acb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
          Explain the cmake build system for wireshark

   $Id$

                           Notice 

   The CMake build system for Wireshark is not yet ready for
   building the whole system. You'll still need autofoo to buld it.
   The only thing that can be build is dumpcap, and even that one
   requires that you successfully ran autofoo prior to running cmake
   (e.g. config.h is not yet build, lex and yacc are not run).
   Basically this is an experiment and if we find out that it works
   and we like cmake more than autofoo we might switch one day.

Table of contents
=================

How to get started with cmake?
Why cmake?
Why not cmake?
What needs to be done?
Links regarding cmake

How to get started with cmake?
==============================

You can find documentation on cmake at: http://www.cmake.org/

cmake is designed to support out of tree builds. So much so, that
in tree builds do not work properly in all cases.

How to do out of tree build (Unix/Linux):
1) Install cmake.
2) Build the project with the old build system once (to generate
   config.h and run bison and flex to generate some c-files).
3) Assuming, you are in the top directory of the wireshark source
   cd ..
4) mkdir build
5) cd build
6) cmake ../<Name_of_WS_source_dir>
7) make

Why cmake?
==========
- Can create project files for some MS and Apple IDEs.
- Fast
- Easier to understand/learn
- One build infrastructure even including Windows?
...

Why not cmake?
==============
- Lots of work to do
- Everyone who wants to build from source needs cmake
- Current state of documentation isn't really better than
  autofoo documentation, in some respect it's even worse
  (you need to buy a book to get an explanation as to how
  cmake really works).
...

What needs to be done?
======================

only dumpcap and libwiretap have been done, and even those rely on
autofoo having been run before:

- Add proper GTK1/GLIB2/GLIB1 detection (currently links against gtk2
  to pull in glib2).
- Create config.h
- Autocreated source files in wiretap need to be build from .l, .y files.

All other tools and libs still need to be built.

Links regarding cmake
=====================
The home page of the cmake project
	http://www.cmake.org/

The home page of the cmake project documentation
	http://www.cmake.org/Wiki/CMake

About cmake in general and why KDE4 uses it
	http://lwn.net/Articles/188693/

Introductory arcticle in Linux Journal
	http://www.linuxjournal.com/node/6700/print

Useful variables
	http://www.cmake.org/Wiki/CMake_Useful_Variables

cmake FAQ
	http://www.cmake.org/Wiki/CMake_FAQ

Additional cmake modules
	http://code.google.com/p/cmake-modules/