Mercurial > hg > waaad
view CMakeLists.txt @ 391:9907abba8681
Added early support for RADIUS Accounting (RFC2866)
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Fri, 29 May 2009 16:25:02 +0900 |
parents | c4a1499164a3 |
children |
line wrap: on
line source
# Build description file for use with cmake (cmake.org) # Name of the project, and language PROJECT("WIDE Diameter AAA daemon" C) # Some subfolder have tests ENABLE_TESTING() # CMake version CMAKE_MINIMUM_REQUIRED(VERSION 2.6) # Location of additional CMake modules SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") # All source code should be POSIX 200112L compatible, but some other extensions might be used, so: ADD_DEFINITIONS(-D_GNU_SOURCE) # Location for the include files INCLUDE_DIRECTORIES(include) # waaad daemon, and some extensions, use yacc and lex parsers SET(BISON_GENERATE_DEFINES TRUE) SET(BISON_PREFIX_OUTPUTS TRUE) INCLUDE(CMakeUserUseBison) SET(FLEX_PREFIX_OUTPUTS TRUE) INCLUDE(CMakeUserUseFlex) IF( NOT BISON_EXECUTABLE OR NOT FLEX_EXECUTABLE ) MESSAGE( SEND_ERROR "Bison and Flex are required" ) ENDIF( NOT BISON_EXECUTABLE OR NOT FLEX_EXECUTABLE ) # Check that flex is at least 2.5.20 to support bison-bridge # how to do the check with cmake??? # Location for the waaad source code SUBDIRS(waaad) # Do we build the extensions? OPTION(NoExtensions "Ignore the extensions completly?") IF(NOT NoExtensions) SUBDIRS(extensions) ENDIF(NOT NoExtensions)