update
This commit is contained in:
parent
89f071cd7c
commit
1b404f229a
@ -1,7 +1,9 @@
|
||||
cmake_minimum_required(VERSION 3.15)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
project(glpy VERSION 1.0 DESCRIPTION "a default project" LANGUAGES CXX)
|
||||
add_compile_options(-Wall -Wextra -Wpedantic)
|
||||
file(GLOB_RECURSE SRC src/*.cpp)
|
||||
|
||||
find_package(Python 3.12.3 COMPONENTS Interpreter Development REQUIRED)
|
||||
find_package(pybind11 CONFIG REQUIRED)
|
||||
|
||||
|
10
src/main.cpp
10
src/main.cpp
@ -10,9 +10,9 @@ PYBIND11_MODULE(glpy, m) {
|
||||
py::arg("title")
|
||||
);
|
||||
|
||||
// tests.def("glfw_window",&tests::glfw_window,
|
||||
// py::arg("width"),
|
||||
// py::arg("height"),
|
||||
// py::arg("title")
|
||||
// );
|
||||
tests.def("glfw_window",&tests::glfw_window,
|
||||
py::arg("width"),
|
||||
py::arg("height"),
|
||||
py::arg("title")
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue
Block a user