Mercurial > hg > freeDiameter
annotate freeDiameter/CMakeLists.txt @ 11:6576ef5e01eb
Added some support for peers
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Fri, 25 Sep 2009 18:05:06 +0900 |
parents | c5c99c73c2bf |
children | ef9ef3bf4752 |
rev | line source |
---|---|
0 | 1 # The subproject name |
1
bafb831ba688
Fix names to proper case for freeDiameter
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
0
diff
changeset
|
2 Project("freeDiameterd" C) |
0 | 3 |
8
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
4 # Configuration parser |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
5 BISON_FILE(fdd.y) |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
6 FLEX_FILE(fdd.l) |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
7 SET_SOURCE_FILES_PROPERTIES(lex.fdd.c fdd.tab.c PROPERTIES COMPILE_FLAGS "-I ${CMAKE_CURRENT_SOURCE_DIR}") |
0 | 8 |
9 # List of source files | |
10 SET(FD_COMMON_SRC | |
1
bafb831ba688
Fix names to proper case for freeDiameter
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
0
diff
changeset
|
11 fD.h |
8
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
12 config.c |
10
c5c99c73c2bf
Added some extensions and functions in the daemon
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
8
diff
changeset
|
13 dispatch.c |
8
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
14 extensions.c |
0 | 15 dict_base_proto.c |
10
c5c99c73c2bf
Added some extensions and functions in the daemon
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
8
diff
changeset
|
16 messages.c |
11
6576ef5e01eb
Added some support for peers
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
10
diff
changeset
|
17 peers.c |
10
c5c99c73c2bf
Added some extensions and functions in the daemon
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
8
diff
changeset
|
18 queues.c |
0 | 19 ) |
20 | |
8
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
21 SET(FD_COMMON_GEN_SRC |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
22 lex.fdd.c |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
23 fdd.tab.c |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
24 fdd.tab.h |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
25 ) |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
26 |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
27 |
0 | 28 # Building the executable |
8
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
29 ADD_EXECUTABLE(freeDiameterd ${FD_COMMON_SRC} ${FD_COMMON_GEN_SRC} main.c) |
0 | 30 |
31 # The link command | |
1
bafb831ba688
Fix names to proper case for freeDiameter
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
0
diff
changeset
|
32 LINK_DIRECTORIES(${CURRENT_BINARY_DIR}/../libfreeDiameter) |
bafb831ba688
Fix names to proper case for freeDiameter
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
0
diff
changeset
|
33 TARGET_LINK_LIBRARIES(freeDiameterd libfreeDiameter ${FD_LIBS}) |
0 | 34 |
2
d8ce06172629
Added a global debug level var
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
1
diff
changeset
|
35 # Save the list of files, if needed |
d8ce06172629
Added a global debug level var
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
1
diff
changeset
|
36 SET(FD_COMMON_SRC ${FD_COMMON_SRC} PARENT_SCOPE) |
8
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
37 SET(FD_COMMON_GEN_SRC ${FD_COMMON_GEN_SRC} PARENT_SCOPE) |
2
d8ce06172629
Added a global debug level var
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
1
diff
changeset
|
38 |
0 | 39 # The unary tests directory |
40 OPTION(SKIP_TESTS "Skip compilation of the tests?" OFF) | |
41 IF ( NOT SKIP_TESTS ) | |
42 SUBDIRS(tests) | |
43 ENDIF ( NOT SKIP_TESTS ) |