Commit 1ca334e5 authored by Alexander Dielen's avatar Alexander Dielen

switch to static linking

parent 81480ba7
cmake_minimum_required(VERSION 2.8.12)
project(openmesh)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
Please register or sign in to reply
set(OPENMESH_BUILD_PYTHON_BINDINGS OFF)
add_subdirectory(OpenMesh)
add_subdirectory(pybind11)
set_target_properties(
OpenMeshCore OpenMeshTools PROPERTIES
EXCLUDE_FROM_ALL ON
EXCLUDE_FROM_DEFAULT_BUILD ON
)
acg_append_files(HEADERS "src/*.hh" .)
acg_append_files(SOURCES "src/*.cc" .)
include_directories(${OPENMESH_INCLUDE_DIRS})
pybind11_add_module(openmesh ${HEADERS} ${SOURCES})
target_link_libraries(openmesh PRIVATE ${OPENMESH_LIBRARIES})
target_link_libraries(openmesh PRIVATE OpenMeshCoreStatic)
target_link_libraries(openmesh PRIVATE OpenMeshToolsStatic)
enable_testing()
add_test(
......
......@@ -3,6 +3,8 @@
#ifndef OPENMESH_PYTHON_MESHTYPES_HH
#define OPENMESH_PYTHON_MESHTYPES_HH
#define OM_STATIC_BUILD
#include <OpenMesh/Core/IO/MeshIO.hh>
#include <OpenMesh/Core/Mesh/TriMesh_ArrayKernelT.hh>
#include <OpenMesh/Core/Mesh/PolyMesh_ArrayKernelT.hh>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment