forked from hexb66/matplotlib-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
19 lines (16 loc) · 731 Bytes
/
CMakeLists.txt
File metadata and controls
19 lines (16 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
project(matplotlib_cpp)
message("Install path is ${CMAKE_INSTALL_PREFIX}")
message("Build type is ${CMAKE_BUILD_TYPE}")
install(FILES ${CMAKE_SOURCE_DIR}/matplotlibcpp.h DESTINATION include)
set(matplotlib_cpp_include_dirs ${CMAKE_INSTALL_PREFIX}/include)
configure_file(${CMAKE_SOURCE_DIR}/cmake/matplotlib_cppConfig.cmake.in
"${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/matplotlib_cppConfig.cmake" @ONLY)
install(FILES
"${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/matplotlib_cppConfig.cmake"
DESTINATION share/matplotlib_cpp/cmake)
# set(BUILD_TESTING 1)
if(BUILD_TESTING)
message("Build examples")
include(${CMAKE_SOURCE_DIR}/cmake/examples.cmake)
endif()