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
19af3575
Commit
19af3575
authored
Nov 24, 2015
by
Luka Čehovin
Committed by
Wenzel Jakob
Nov 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enabling installation of headers on Unix systems.
parent
a4175d6e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
CMakeLists.txt
+11
-2
No files found.
CMakeLists.txt
View file @
19af3575
...
@@ -53,8 +53,7 @@ include_directories(${PYTHON_INCLUDE_DIR})
...
@@ -53,8 +53,7 @@ include_directories(${PYTHON_INCLUDE_DIR})
# Include path for pybind11 header files
# Include path for pybind11 header files
include_directories
(
include
)
include_directories
(
include
)
# Create the binding library
set
(
PYBIND11_HEADERS
add_library
(
example SHARED
include/pybind11/cast.h
include/pybind11/cast.h
include/pybind11/common.h
include/pybind11/common.h
include/pybind11/operators.h
include/pybind11/operators.h
...
@@ -62,6 +61,11 @@ add_library(example SHARED
...
@@ -62,6 +61,11 @@ add_library(example SHARED
include/pybind11/pytypes.h
include/pybind11/pytypes.h
include/pybind11/typeid.h
include/pybind11/typeid.h
include/pybind11/numpy.h
include/pybind11/numpy.h
)
# Create the binding library
add_library
(
example SHARED
${
PYBIND11_HEADERS
}
example/example.cpp
example/example.cpp
example/example1.cpp
example/example1.cpp
example/example2.cpp
example/example2.cpp
...
@@ -147,3 +151,8 @@ set(RUN_TEST ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/example/run_test.p
...
@@ -147,3 +151,8 @@ set(RUN_TEST ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/example/run_test.p
foreach
(
i RANGE 1 12
)
foreach
(
i RANGE 1 12
)
add_test
(
NAME example
${
i
}
COMMAND
${
RUN_TEST
}
example
${
i
}
)
add_test
(
NAME example
${
i
}
COMMAND
${
RUN_TEST
}
example
${
i
}
)
endforeach
()
endforeach
()
if
(
UNIX
)
install
(
FILES
${
PYBIND11_HEADERS
}
DESTINATION include/pybind11
)
endif
()
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