2024-06-28 06:57:41 +00:00
|
|
|
cmake_minimum_required(VERSION 3.15)
|
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
2024-06-28 09:17:37 +00:00
|
|
|
project(glpy VERSION 1.0 DESCRIPTION "a default project" LANGUAGES CXX)
|
2024-06-28 06:57:41 +00:00
|
|
|
file(GLOB_RECURSE SRC src/*.cpp)
|
|
|
|
find_package(Python 3.12.3 COMPONENTS Interpreter Development REQUIRED)
|
|
|
|
find_package(pybind11 CONFIG REQUIRED)
|
2024-06-28 08:58:11 +00:00
|
|
|
|
2024-06-28 06:57:41 +00:00
|
|
|
pybind11_add_module(${PROJECT_NAME} ${SRC})
|
2024-06-28 08:58:11 +00:00
|
|
|
|
|
|
|
add_subdirectory(glfw)
|
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE glfw)
|
|
|
|
find_package(OpenGl REQUIRED)
|
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE OpenGL::GL)
|