This commit is contained in:
ZtRXR 2024-06-28 22:58:16 +08:00
parent 0c2fd4a6be
commit f804876100
4 changed files with 14 additions and 4 deletions

View File

@ -7,9 +7,18 @@ find_package(pybind11 CONFIG REQUIRED)
pybind11_add_module(${PROJECT_NAME} ${SRC}) pybind11_add_module(${PROJECT_NAME} ${SRC})
add_subdirectory( ${PROJECT_SOURCE_DIR}/glew-cmake )
# add_subdirectory( ${PROJECT_SOURCE_DIR}/glew-cmake)
# target_link_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/build/glew-cmake/lib)
# target_include_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/glew-cmake/include/)
# target_link_libraries(${PROJECT_NAME} PRIVATE glew)
add_subdirectory( ${PROJECT_SOURCE_DIR}/glfw ) add_subdirectory( ${PROJECT_SOURCE_DIR}/glfw )
target_link_libraries(${PROJECT_NAME} PRIVATE glfw) target_link_libraries(${PROJECT_NAME} PRIVATE glfw)
find_package(OpenGl REQUIRED) find_package(OpenGl REQUIRED)
target_include_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/include ) target_include_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/include )
target_link_libraries(${PROJECT_NAME} PRIVATE OpenGL::GL ) target_link_libraries(${PROJECT_NAME} PRIVATE OpenGL::GL )

@ -1 +0,0 @@
Subproject commit a5494db414d62e7bcb19f9f8fd7ee660338ea08e

View File

@ -2,6 +2,7 @@
#include <pybind11/stl.h> #include <pybind11/stl.h>
#include <glpy.h> #include <glpy.h>
namespace py = pybind11; namespace py = pybind11;

View File

@ -1,6 +1,7 @@
#include <pybind11/stl.h> #include <pybind11/stl.h>
#include <GLFW/glfw3.h> #include <GLFW/glfw3.h>
#include <glpy.h> #include <glpy.h>
#include <GL/glew.h>
int tests::glfw_window(unsigned width,unsigned height, std::string title) int tests::glfw_window(unsigned width,unsigned height, std::string title)
{ {