Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bill Hoffman
autopybind11
Commits
1657e46c
Commit
1657e46c
authored
Aug 06, 2020
by
Bill Hoffman
Browse files
fix code for CI
parent
3d54d788
Pipeline
#183674
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Tests/CMakeLists.txt
View file @
1657e46c
...
...
@@ -8,6 +8,8 @@ function(add_autopybind11_test name)
--build-project
${
name
}
--build-options
"-DPYBIND11_SRC_DIR=
${
pybind11_SOURCE_DIR
}
"
"-DAutoPyBind11_DIR=
${
AutoPyBind11_DIR
}
"
"-DCastXML_EXECUTABLE=
${
CastXML_EXECUTABLE
}
"
"-DPYTHON_EXECUTABLE=
${
PYTHON_EXECUTABLE
}
"
--test-command
${
PYTHON_EXECUTABLE
}
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
name
}
/
${
name
}
.py
--build-run-dir
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
name
}
...
...
Tests/simple/CMakeLists.txt
View file @
1657e46c
...
...
@@ -4,7 +4,7 @@ project(simple CXX)
find_package
(
AutoPyBind11
)
autopybind11_fetch_build_pybind11
(
PYBIND11_DIR
${
PYBIND11_SRC_DIR
}
)
add_library
(
simpleLib simple.cxx
)
set_property
(
TARGET simpleLib PROPERTY POSITION_INDEPENDENT_CODE ON
)
autopybind11_add_module
(
"simpleTest"
YAML_INPUT
${
CMAKE_CURRENT_SOURCE_DIR
}
/simple_wrap.yml
# CONFIG_INPUT ${CMAKE_CURRENT_SOURCE_DIR}/config.yml
DESTINATION
${
CMAKE_CURRENT_BINARY_DIR
}
LINK_LIBRARIES simpleLib
)
Write
Preview
Supports
Markdown
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