forked from sciplot/sciplot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (26 loc) · 926 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
33
34
35
36
37
cmake_minimum_required(VERSION 3.0)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(CCache)
project(sciplot VERSION 0.2.0
DESCRIPTION "A modern C++ scientific plotting library powered by gnuplot"
HOMEPAGE_URL "https://sciplot.github.io")
set(CMAKE_CXX_STANDARD 17)
option(SCIPLOT_BUILD_EXAMPLES "Build examples" ON)
option(SCIPLOT_BUILD_TESTS "Build tests" ON)
option(SCIPLOT_BUILD_DOCS "Build documentation" ON)
# Set compile options in case of MSVC
if(MSVC)
add_compile_options(/MP) # enable parallel build
add_definitions("/wd4267 /wd4244") # ignore silly warnings related to size_t/int and site_t/double conversions
endif()
if(SCIPLOT_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
if(SCIPLOT_BUILD_TESTS)
add_subdirectory(tests)
endif()
if(SCIPLOT_BUILD_DOCS)
add_subdirectory(docs)
endif()
add_subdirectory(scripts)
include(cmake_install_generation.cmake)