view CMakeLists.txt @ 433:987f94bc494f default tip

Fix incorrect parsing of STATE attribute
author Sebastien Decugis <sdecugis@nict.go.jp>
date Thu, 25 Jun 2009 15:59:56 +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)
"Welcome to our mercurial repository"