cmake_minimum_required(VERSION 3.15) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) project(glpy VERSION 1.0 DESCRIPTION "a default project" LANGUAGES CXX) file(GLOB_RECURSE SRC src/*.cpp) find_package(Python 3.12.3 COMPONENTS Interpreter Development REQUIRED) find_package(pybind11 CONFIG REQUIRED) pybind11_add_module(${PROJECT_NAME} ${SRC}) # 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) target_include_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/include) target_link_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/libs) target_link_libraries(${PROJECT_NAME} PRIVATE glew) add_subdirectory( ${PROJECT_SOURCE_DIR}/glfw ) target_link_libraries(${PROJECT_NAME} PRIVATE glfw) find_package(OpenGl REQUIRED) target_link_libraries(${PROJECT_NAME} PRIVATE OpenGL::GL)