-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
30 lines (20 loc) · 807 Bytes
/
CMakeLists.txt
File metadata and controls
30 lines (20 loc) · 807 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
30
cmake_minimum_required(VERSION 3.6)
project(cpplot)
# Add cmake modules
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
# Set make options
set (CMAKE_CXX_STANDARD 11)
set(CMAKE_VERBOSE_MAKEFILE ON)
# Lets glog play more nicely with Windows
IF(CMAKE_SYSTEM_NAME STREQUAL Windows)
add_definitions(-DGLOG_NO_ABBREVIATED_SEVERITIES)
endif()
# Add third party tools required by conan
message("-- Adding dependencies with conan. Make sure you've called `conan install . --install-folder ${CMAKE_BINARY_DIR}`")
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
# Add include directories so the test routines can pick up the library contents
include_directories(source)
# Add the source and test directories
add_subdirectory(source)
add_subdirectory(test)