-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
30 lines (25 loc) · 948 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
###############################################################################
#
# Copyright (C) 2019 Bjorn Reese <breese@users.sourceforge.net>
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
#
###############################################################################
cmake_minimum_required(VERSION 3.7)
project(vista CXX)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
add_subdirectory(cmake)
if (MSVC)
target_compile_options(vista INTERFACE /W3)
else()
target_compile_options(vista INTERFACE -Wall -Wextra -pedantic -Werror=return-type)
endif()
enable_testing()
add_subdirectory(test)
add_subdirectory(example)
add_subdirectory(benchmark EXCLUDE_FROM_ALL)
add_subdirectory(doc EXCLUDE_FROM_ALL)