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
19af3575
Commit
19af3575
authored
Nov 24, 2015
by
Luka Čehovin
Committed by
Wenzel Jakob
Nov 24, 2015
Browse files
Enabling installation of headers on Unix systems.
parent
a4175d6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
CMakeLists.txt
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