Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
dac3858e
Commit
dac3858e
authored
Sep 29, 2016
by
Wenzel Jakob
Browse files
Make header files viewable in IDEs (fixes #424)
parent
5699986d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
19 deletions
+24
-19
CMakeLists.txt
CMakeLists.txt
+21
-18
tests/CMakeLists.txt
tests/CMakeLists.txt
+3
-1
No files found.
CMakeLists.txt
View file @
dac3858e
...
@@ -153,28 +153,31 @@ function(pybind11_enable_warnings target_name)
...
@@ -153,28 +153,31 @@ function(pybind11_enable_warnings target_name)
endif
()
endif
()
endfunction
()
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
)
if
(
PYBIND11_TEST
)
add_subdirectory
(
tests
)
add_subdirectory
(
tests
)
endif
()
endif
()
if
(
PYBIND11_INSTALL
)
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
)
install
(
FILES
${
PYBIND11_HEADERS
}
DESTINATION include/pybind11
)
endif
()
endif
()
tests/CMakeLists.txt
View file @
dac3858e
...
@@ -54,7 +54,9 @@ if(PYBIND11_TEST_FILES_EIGEN_I GREATER -1)
...
@@ -54,7 +54,9 @@ if(PYBIND11_TEST_FILES_EIGEN_I GREATER -1)
endif
()
endif
()
# Create the binding library
# Create the binding library
pybind11_add_module
(
pybind11_tests pybind11_tests.cpp
${
PYBIND11_TEST_FILES
}
)
pybind11_add_module
(
pybind11_tests pybind11_tests.cpp
${
PYBIND11_TEST_FILES
}
${
PYBIND11_HEADERS
}
)
pybind11_enable_warnings
(
pybind11_tests
)
pybind11_enable_warnings
(
pybind11_tests
)
if
(
EIGEN3_FOUND
)
if
(
EIGEN3_FOUND
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment