comparison 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 bafb831ba688
children fc7c18867cf7
comparison
equal deleted inserted replaced
7:e5af94b04946 8:3e143f047f78
1 # This file is the source for generating the Makefile for the project, using cmake tool (cmake.org) 1 # This file is the source for generating the Makefile for the project, using cmake tool (cmake.org)
2 2
3 # Name of the project, and language 3 # Name of the project, and language
4 PROJECT("freeDiameter" C) 4 PROJECT("freeDiameter" C)
5
6 # Informations to display in daemon's help
7 SET(FD_PROJECT_NAME freeDiameter)
8 SET(FD_PROJECT_BINARY freeDiameterd)
9 SET(FD_PROJECT_VERSION_MAJOR 0)
10 SET(FD_PROJECT_VERSION_MINOR 1)
11 SET(FD_PROJECT_VERSION_REV 0)
12 SET(FD_PROJECT_COPYRIGHT "Copyright (c) 2008-2009, WIDE Project (www.wide.ad.jp) and NICT (www.nict.go.jp)")
5 13
6 # Some subfolders may have tests 14 # Some subfolders may have tests
7 ENABLE_TESTING() 15 ENABLE_TESTING()
8 16
9 # CMake version 17 # CMake version
13 SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") 21 SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
14 22
15 # All source code should be POSIX 200112L compatible, but some other extensions might be used, so: 23 # All source code should be POSIX 200112L compatible, but some other extensions might be used, so:
16 ADD_DEFINITIONS(-D_GNU_SOURCE) 24 ADD_DEFINITIONS(-D_GNU_SOURCE)
17 25
18 # Location for the include files
19 INCLUDE_DIRECTORIES(include)
20 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/include)
21 SUBDIRS(include/freeDiameter)
22
23 # some subfolders use yacc and lex parsers 26 # some subfolders use yacc and lex parsers
24 SET(BISON_GENERATE_DEFINES TRUE) 27 SET(BISON_GENERATE_DEFINES TRUE)
25 SET(BISON_PREFIX_OUTPUTS TRUE) 28 SET(BISON_PREFIX_OUTPUTS TRUE)
26 INCLUDE(CMakeUserUseBison) 29 INCLUDE(CMakeUserUseBison)
27 SET(FLEX_PREFIX_OUTPUTS TRUE) 30 SET(FLEX_PREFIX_OUTPUTS TRUE)
30 MESSAGE( SEND_ERROR "Bison and Flex are required" ) 33 MESSAGE( SEND_ERROR "Bison and Flex are required" )
31 ENDIF( NOT BISON_EXECUTABLE OR NOT FLEX_EXECUTABLE ) 34 ENDIF( NOT BISON_EXECUTABLE OR NOT FLEX_EXECUTABLE )
32 # Check that flex is at least 2.5.20 to support bison-bridge 35 # Check that flex is at least 2.5.20 to support bison-bridge
33 # how to do the check with cmake??? 36 # how to do the check with cmake???
34 37
38 # Location for the include files
39 INCLUDE_DIRECTORIES(include)
40 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/include)
41 SUBDIRS(include/freeDiameter)
42
35 # Location for the source code 43 # Location for the source code
36 SUBDIRS(libfreeDiameter) 44 SUBDIRS(libfreeDiameter)
37 SUBDIRS(freeDiameter) 45 SUBDIRS(freeDiameter)
38 46
39 # Do we build the extensions? 47 # Do we build the extensions?
"Welcome to our mercurial repository"