-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
29 lines (23 loc) · 793 Bytes
/
CMakeLists.txt
File metadata and controls
29 lines (23 loc) · 793 Bytes
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
# Copyright Gonzalo Brito Gadeschi 2015
# Setup project
project(static_vector 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(${static_vector_SOURCE_DIR}/include)
enable_testing()
# Setup subdirectories
add_subdirectory(test)
# 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.")