forked from gnzlbg/static_vector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
32 lines (27 loc) · 977 Bytes
/
CMakeLists.txt
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
# Copyright Gonzalo Brito Gadeschi 2015
# Copyright Louis Dionne 2015
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
# Setup project
project(fcvector CXX)
cmake_minimum_required(VERSION 3.0)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # Export compilation data-base
# Build system
include(options)
include(flags)
include(targets)
include(packages)
# Include library
include_directories(${fcvector_SOURCE_DIR}/include)
enable_testing()
# Setup subdirectories
add_subdirectory(test)
add_subdirectory(site)
# Setup the `check` target to build, check format, and then run all the tests
# and examples.
add_custom_target(check ALL
COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS tests test.headers
COMMENT "Build and then run all the tests and examples.")