-
Notifications
You must be signed in to change notification settings - Fork 41
/
CMakeLists.txt
45 lines (36 loc) · 1.21 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 3.5)
project(dlisio LANGUAGES C CXX)
include(CheckIncludeFile)
include(CTest)
include(GNUInstallDirs)
include(TestBigEndian)
option(BUILD_PYTHON "Build Python extension" ON)
option(BUILD_DOC "Build documentation" OFF)
if (NOT MSVC)
# assuming gcc-style options
# add warnings in debug mode
list(APPEND warnings-c++ -Wall
-Wextra
-pedantic
-Wformat-nonliteral
-Wcast-align
-Wpointer-arith
-Wmissing-declarations
-Wcast-qual
-Wwrite-strings
-Wchar-subscripts
-Wredundant-decls
)
endif()
# add documentation master target for other documentation sub targets to hook
# into
add_custom_target(doc ALL)
set(CMAKE_CXX_STANDARD 11)
test_big_endian(BIG_ENDIAN)
add_subdirectory(external/endianness)
add_subdirectory(external/catch2)
find_package(fmt REQUIRED)
find_package(lfp REQUIRED)
find_package(mpark_variant REQUIRED)
add_subdirectory(lib)
add_subdirectory(python)