From 1b404f229a864db8f64a4dbe3763ee90434e2aa5 Mon Sep 17 00:00:00 2001 From: ZtRXR Date: Sat, 29 Jun 2024 11:59:23 +0800 Subject: [PATCH] update --- CMakeLists.txt | 2 ++ src/main.cpp | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c7a18dd..bd0fb7e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/main.cpp b/src/main.cpp index 76e3a9e..955feba 100644 --- a/src/main.cpp +++ b/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") + ); } \ No newline at end of file