Mercurial > hg > freeDiameter
annotate freeDiameter/CMakeLists.txt @ 17:ab3c58d88be3
Added proper gcrypt initializer
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Mon, 05 Oct 2009 14:03:05 +0900 |
parents | 013ce9851131 |
children | 277ec00d793e |
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 |
13
ef9ef3bf4752
Progress on peer state machine
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
11
diff
changeset
|
17 queues.c |
11
6576ef5e01eb
Added some support for peers
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
10
diff
changeset
|
18 peers.c |
13
ef9ef3bf4752
Progress on peer state machine
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
11
diff
changeset
|
19 p_expiry.c |
ef9ef3bf4752
Progress on peer state machine
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
11
diff
changeset
|
20 p_psm.c |
0 | 21 ) |
22 | |
8
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
23 SET(FD_COMMON_GEN_SRC |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
24 lex.fdd.c |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
25 fdd.tab.c |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
26 fdd.tab.h |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
27 ) |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
28 |
16
013ce9851131
Started including TLS code
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
13
diff
changeset
|
29 # Require GNU TLS for building the daemon |
013ce9851131
Started including TLS code
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
13
diff
changeset
|
30 FIND_PACKAGE(GNUTLS REQUIRED) |
013ce9851131
Started including TLS code
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
13
diff
changeset
|
31 INCLUDE_DIRECTORIES(${GNUTLS_INCLUDE_DIRS}) |
013ce9851131
Started including TLS code
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
13
diff
changeset
|
32 SET(FD_LIBS ${FD_LIBS} ${GNUTLS_LIBRARIES}) |
17
ab3c58d88be3
Added proper gcrypt initializer
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
16
diff
changeset
|
33 find_path(GCRYPT_INCLUDE_DIR NAMES gcrypt.h) |
ab3c58d88be3
Added proper gcrypt initializer
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
16
diff
changeset
|
34 If ( NOT GCRYPT_INCLUDE_DIR ) |
ab3c58d88be3
Added proper gcrypt initializer
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
16
diff
changeset
|
35 MESSAGE(SEND_ERROR "Unable to find gcrypt.h, please install libgcrypt-dev or equivalent") |
ab3c58d88be3
Added proper gcrypt initializer
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
16
diff
changeset
|
36 Endif ( NOT GCRYPT_INCLUDE_DIR ) |
ab3c58d88be3
Added proper gcrypt initializer
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
16
diff
changeset
|
37 INCLUDE_DIRECTORIES(${GCRYPT_INCLUDE_DIR}) |
8
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
38 |
0 | 39 # Building the executable |
8
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
40 ADD_EXECUTABLE(freeDiameterd ${FD_COMMON_SRC} ${FD_COMMON_GEN_SRC} main.c) |
0 | 41 |
42 # The link command | |
1
bafb831ba688
Fix names to proper case for freeDiameter
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
0
diff
changeset
|
43 LINK_DIRECTORIES(${CURRENT_BINARY_DIR}/../libfreeDiameter) |
bafb831ba688
Fix names to proper case for freeDiameter
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
0
diff
changeset
|
44 TARGET_LINK_LIBRARIES(freeDiameterd libfreeDiameter ${FD_LIBS}) |
0 | 45 |
2
d8ce06172629
Added a global debug level var
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
1
diff
changeset
|
46 # Save the list of files, if needed |
d8ce06172629
Added a global debug level var
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
1
diff
changeset
|
47 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
|
48 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
|
49 |
0 | 50 # The unary tests directory |
51 OPTION(SKIP_TESTS "Skip compilation of the tests?" OFF) | |
52 IF ( NOT SKIP_TESTS ) | |
53 SUBDIRS(tests) | |
54 ENDIF ( NOT SKIP_TESTS ) |