This commit is contained in:
ZtRXR 2024-06-29 11:59:23 +08:00
parent 89f071cd7c
commit 1b404f229a
2 changed files with 7 additions and 5 deletions

View File

@ -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)

View File

@ -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")
);
}