~sbosnick/openacct/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright 2013-2014 Steven Bosnick
# This file is released under the terms of the GNU General 
# Public License version 3. See the file COPYING for your 
# rights under that license.

# Setup the project
cmake_minimum_required (VERSION 2.8)
project (openacct)
list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)

# Setup the version numbering
include (directoryutil)
set (OpenAcct_VERSION_MAJOR 00)
set (OpenAcct_VERSION_MINOR 01)

configure_file (
    ${CMAKE_SOURCE_DIR}/configure.h.in
    ${CMAKE_BINARY_DIR}/configure.h
    )

include_directories (${CMAKE_BINARY_DIR})
add_clean_file (configure.h)

# Setup dependancies for Boost
find_package (Boost REQUIRED COMPONENTS program_options)
include_directories (${Boost_INCLUDE_DIRS})

# Setup testing
enable_testing ()
include (gtest)
include (cuketest)

# Setup code coverage
include (coverage)
set_coverage_target (test_coverage)

# Set appropriate compiler flags for the project
include (setflags)
set_std_cxx11_flag ()
set_high_warning_flag ()

# Add the public include directories
add_subdirectory (include)

# Add the subdirectories
add_subdirectory (src)
add_subdirectory (doc)
add_subdirectory (features)