Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
dac3858e
Commit
dac3858e
authored
Sep 29, 2016
by
Wenzel Jakob
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make header files viewable in IDEs (fixes #424)
parent
5699986d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
CMakeLists.txt
+10
-7
tests/CMakeLists.txt
+3
-1
No files found.
CMakeLists.txt
View file @
dac3858e
...
...
@@ -153,12 +153,7 @@ function(pybind11_enable_warnings target_name)
endif
()
endfunction
()
if
(
PYBIND11_TEST
)
add_subdirectory
(
tests
)
endif
()
if
(
PYBIND11_INSTALL
)
set
(
PYBIND11_HEADERS
set
(
PYBIND11_HEADERS
include/pybind11/attr.h
include/pybind11/cast.h
include/pybind11/chrono.h
...
...
@@ -166,6 +161,7 @@ if (PYBIND11_INSTALL)
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
...
...
@@ -174,7 +170,14 @@ if (PYBIND11_INSTALL)
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
)
install
(
FILES
${
PYBIND11_HEADERS
}
DESTINATION include/pybind11
)
endif
()
tests/CMakeLists.txt
View file @
dac3858e
...
...
@@ -54,7 +54,9 @@ if(PYBIND11_TEST_FILES_EIGEN_I GREATER -1)
endif
()
# 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
)
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