aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorWenzel Jakob <wenzel.jakob@epfl.ch>2016-09-29 21:30:00 +0200
committerWenzel Jakob <wenzel.jakob@epfl.ch>2016-09-29 21:30:00 +0200
commitdac3858e7db9d7c3b8dbe471ee545e7bd80b0955 (patch)
tree88c394000ad6510ad45014fb052ddb4699c69da6 /CMakeLists.txt
parent5699986d125d772d2985418b7f948d23e93187df (diff)
downloadplatform_external_python_pybind11-dac3858e7db9d7c3b8dbe471ee545e7bd80b0955.tar.gz
platform_external_python_pybind11-dac3858e7db9d7c3b8dbe471ee545e7bd80b0955.tar.bz2
platform_external_python_pybind11-dac3858e7db9d7c3b8dbe471ee545e7bd80b0955.zip
Make header files viewable in IDEs (fixes #424)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt39
1 files changed, 21 insertions, 18 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6124cf0..48d3cc7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -153,28 +153,31 @@ function(pybind11_enable_warnings target_name)
endif()
endfunction()
+set(PYBIND11_HEADERS
+ include/pybind11/attr.h
+ include/pybind11/cast.h
+ include/pybind11/chrono.h
+ include/pybind11/common.h
+ include/pybind11/complex.h
+ include/pybind11/descr.h
+ include/pybind11/eigen.h
+ include/pybind11/eval.h
+ include/pybind11/functional.h
+ include/pybind11/numpy.h
+ include/pybind11/operators.h
+ include/pybind11/pybind11.h
+ include/pybind11/pytypes.h
+ include/pybind11/stl.h
+ include/pybind11/stl_bind.h
+ include/pybind11/typeid.h
+)
+string(REPLACE "include/" "${CMAKE_CURRENT_SOURCE_DIR}/include/"
+ PYBIND11_HEADERS "${PYBIND11_HEADERS}")
+
if (PYBIND11_TEST)
add_subdirectory(tests)
endif()
if (PYBIND11_INSTALL)
- set(PYBIND11_HEADERS
- include/pybind11/attr.h
- include/pybind11/cast.h
- include/pybind11/chrono.h
- include/pybind11/common.h
- include/pybind11/complex.h
- include/pybind11/descr.h
- include/pybind11/eigen.h
- include/pybind11/functional.h
- include/pybind11/numpy.h
- include/pybind11/operators.h
- include/pybind11/pybind11.h
- include/pybind11/pytypes.h
- include/pybind11/stl.h
- include/pybind11/stl_bind.h
- include/pybind11/typeid.h
- )
-
install(FILES ${PYBIND11_HEADERS} DESTINATION include/pybind11)
endif()