You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
632 B
22 lines
632 B
4 years ago
|
cmake_minimum_required(VERSION 3.1)
|
||
|
|
||
|
project({name} LANGUAGES CXX)
|
||
|
|
||
|
find_package(Python COMPONENTS Interpreter Development REQUIRED)
|
||
|
add_subdirectory(pybind11)
|
||
|
|
||
|
|
||
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
||
|
|
||
|
# libigl
|
||
|
option(LIBIGL_WITH_OPENGL "Use OpenGL" ON)
|
||
|
option(LIBIGL_WITH_OPENGL_GLFW "Use GLFW" ON)
|
||
|
|
||
|
find_package(LIBIGL REQUIRED QUIET)
|
||
|
|
||
|
# Add your project files
|
||
|
file(GLOB SRCFILES *.cpp)
|
||
|
# add_executable(${PROJECT_NAME} ${SRCFILES})
|
||
|
pybind11_add_module(${PROJECT_NAME} ${SRCFILES})
|
||
|
target_link_libraries(${PROJECT_NAME} PRIVATE igl::core igl::opengl_glfw)
|