Mercurial > hg > freeDiameter
annotate freeDiameter/CMakeLists.txt @ 8:3e143f047f78
Backup for the week-end
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Fri, 18 Sep 2009 18:54:07 +0900 |
parents | d8ce06172629 |
children | c5c99c73c2bf |
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 |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
13 extensions.c |
0 | 14 dict_base_proto.c |
15 ) | |
16 | |
8
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
17 SET(FD_COMMON_GEN_SRC |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
18 lex.fdd.c |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
19 fdd.tab.c |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
20 fdd.tab.h |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
21 ) |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
22 |
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
23 |
0 | 24 # Building the executable |
8
3e143f047f78
Backup for the week-end
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
2
diff
changeset
|
25 ADD_EXECUTABLE(freeDiameterd ${FD_COMMON_SRC} ${FD_COMMON_GEN_SRC} main.c) |
0 | 26 |
27 # The link command | |
1
bafb831ba688
Fix names to proper case for freeDiameter
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
0
diff
changeset
|
28 LINK_DIRECTORIES(${CURRENT_BINARY_DIR}/../libfreeDiameter) |
bafb831ba688
Fix names to proper case for freeDiameter
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
0
diff
changeset
|
29 TARGET_LINK_LIBRARIES(freeDiameterd libfreeDiameter ${FD_LIBS}) |
0 | 30 |
2
d8ce06172629
Added a global debug level var
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
1
diff
changeset
|
31 # Save the list of files, if needed |
d8ce06172629
Added a global debug level var
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
1
diff
changeset
|
32 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
|
33 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
|
34 |
0 | 35 # The unary tests directory |
36 OPTION(SKIP_TESTS "Skip compilation of the tests?" OFF) | |
37 IF ( NOT SKIP_TESTS ) | |
38 SUBDIRS(tests) | |
39 ENDIF ( NOT SKIP_TESTS ) |