Prepared release of 3.1.0.
[libsex.git] / CMakeLists.txt
blob93b35ee9995c3b04073301c8134893d5cff08a1c
1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
3 PROJECT(sex)
4 SET(LIBRARY_NAME           lib${PROJECT_NAME})
5 SET(PROJECT_BRIEF          "simple exception library (C++)")
6 SET(PROJECT_VERSION        "3.1.0")
7 SET(PROJECT_VERSION_DATE   "2011-08-22")
10 # Compiler Options
12 ADD_DEFINITIONS("-Werror -Wfatal-errors -Wall -Wextra -ansi -pedantic-errors")
13 ADD_DEFINITIONS("-Wno-variadic-macros")
16 # Project Tree
18 # Only one include directory, for uniformity's sake.
19 # Hence this one is the only candidate possible.
20 INCLUDE_DIRECTORIES(.)
22 # This one contains our code.
23 ADD_SUBDIRECTORY(${LIBRARY_NAME})
25 # That one the documentation.
26 ADD_SUBDIRECTORY(doc EXCLUDE_FROM_ALL)
28 # That one the programmer tests (not build by default).
29 ADD_SUBDIRECTORY(tests EXCLUDE_FROM_ALL)